aboutsummaryrefslogtreecommitdiff
path: root/test_p2p_stress
diff options
context:
space:
mode:
authorDeterminant <tederminant@gmail.com>2019-06-17 16:40:52 -0400
committerDeterminant <tederminant@gmail.com>2019-06-17 16:40:52 -0400
commit2378094c53f0fc8430bdd3137278e57b8fdf8df7 (patch)
treebf9d1c329c446406f2976d937024c3110b5c8b17 /test_p2p_stress
parent1da641f46b49d3d9a92351f8309f4881dfbf2dc2 (diff)
finish doc
Diffstat (limited to 'test_p2p_stress')
-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