aboutsummaryrefslogtreecommitdiff
path: root/test_p2p_stress/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test_p2p_stress/main.go')
-rw-r--r--test_p2p_stress/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_p2p_stress/main.go b/test_p2p_stress/main.go
index 251f2e1..5bb0dc5 100644
--- a/test_p2p_stress/main.go
+++ b/test_p2p_stress/main.go
@@ -54,7 +54,7 @@ func msgRandSerialize(size int) (salticidae.Msg, salticidae.UInt256) {
}
func msgRandUnserialize(msg salticidae.Msg) salticidae.DataStream {
- return msg.ConsumePayload()
+ return msg.GetPayloadByMove()
}
func msgAckSerialize(hash salticidae.UInt256) salticidae.Msg {
@@ -66,7 +66,7 @@ func msgAckSerialize(hash salticidae.UInt256) salticidae.Msg {
}
func msgAckUnserialize(msg salticidae.Msg) salticidae.UInt256 {
- p := msg.ConsumePayload()
+ p := msg.GetPayloadByMove()
hash := salticidae.NewUInt256()
hash.Unserialize(p)
return hash