aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorholisticode <holistic.computing@gmail.com>2018-10-09 02:28:44 +0800
committerViktor TrĂ³n <viktor.tron@gmail.com>2018-10-09 02:28:44 +0800
commit11d0ff6578c34b724436dbeeede726b31b41c8b8 (patch)
tree2aa195426b18494e92d160b244b5efd3650ba9fa /p2p
parent72a076840bea4a3258a3a8d9a7aeb750fcc2ac02 (diff)
downloadgo-tangerine-11d0ff6578c34b724436dbeeede726b31b41c8b8.tar.gz
go-tangerine-11d0ff6578c34b724436dbeeede726b31b41c8b8.tar.zst
go-tangerine-11d0ff6578c34b724436dbeeede726b31b41c8b8.zip
Fix retrieval tests and simulation backends (#17723)
* swarm/network/stream: introduced visualized snapshot sync test * swarm/network/stream: non-existing hash visualization sim * swarm/network/stream: fixed retrieval tests; new backend for visualization * swarm/network/stream: cleanup of visualized_snapshot_sync_sim_test.go * swarm/network/stream: rebased PR on master * swarm/network/stream: fixed loop logic in retrieval tests * swarm/network/stream: fixed iterations for snapshot tests * swarm/network/stream: address PR comments * swarm/network/stream: addressed PR comments
Diffstat (limited to 'p2p')
-rw-r--r--p2p/simulations/events.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/p2p/simulations/events.go b/p2p/simulations/events.go
index f17958c68..9b2a990e0 100644
--- a/p2p/simulations/events.go
+++ b/p2p/simulations/events.go
@@ -58,6 +58,9 @@ type Event struct {
// Msg is set if the type is EventTypeMsg
Msg *Msg `json:"msg,omitempty"`
+
+ //Optionally provide data (currently for simulation frontends only)
+ Data interface{} `json:"data"`
}
// NewEvent creates a new event for the given object which should be either a