p2p/simulations: log warning on snapshot loading disconnection

This commit is contained in:
Janos Guljas 2018-12-05 10:07:35 +01:00
parent 3f5f1375b2
commit 7d1ad71b91

View file

@ -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.