Merge pull request #1485 from wpaulino/syncmanager-done-peer-verack

server: remove peer from SyncManager on VerAckReceived
This commit is contained in:
Olaoluwa Osuntokun 2019-11-08 18:21:37 -08:00 committed by GitHub
commit 037489ef50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2063,7 +2063,7 @@ func (s *server) peerDoneHandler(sp *serverPeer) {
s.donePeers <- sp
// Only tell sync manager we are gone if we ever told it we existed.
if sp.VersionKnown() {
if sp.VerAckReceived() {
s.syncManager.DonePeer(sp.Peer)
// Evict any remaining orphans that were sent by the peer.