Skip to content

Commit

Permalink
server: remove peer from SyncManager on VerAckReceived
Browse files Browse the repository at this point in the history
Peers are now added to the SyncManager if we receive their verack, but
we'd still attempt to remove them from the SyncManager if we didn't
receive it.
  • Loading branch information
wpaulino committed Oct 30, 2019
1 parent a41498d commit bc21593
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 @@ -2058,7 +2058,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 bc21593

Please sign in to comment.