From 7d1ad71b918398c612d79c55e17c9d4cbe4a6293 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Wed, 5 Dec 2018 10:07:35 +0100 Subject: [PATCH] p2p/simulations: log warning on snapshot loading disconnection --- p2p/simulations/network.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index 1e65e84423..ab9f582c52 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -760,6 +760,7 @@ func (net *Network) Load(snap *Snapshot) error { // Delete the connection from the set of established connections. // This will prevent false positive in case disconnections happen. delete(connections, connection) + log.Warn("load snapshot: unexpected disconnection", "one", e.Conn.One, "other", e.Conn.Other) continue } // Check that the connection is from the snapshot.