Skip to content

Commit

Permalink
Merge pull request #1485 from wpaulino/syncmanager-done-peer-verack
Browse files Browse the repository at this point in the history
server: remove peer from SyncManager on VerAckReceived
  • Loading branch information
Roasbeef committed Nov 9, 2019
2 parents 79943b2 + bc21593 commit 037489e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 037489e

Please sign in to comment.