From 12b25fdf6ec77b6277b50f6b1bad231008387c3d Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Wed, 8 Nov 2017 02:42:27 +0000 Subject: [PATCH] blockchain: add comment in AddPeer. closes #666 --- blockchain/reactor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blockchain/reactor.go b/blockchain/reactor.go index 5a073030..64e5e937 100644 --- a/blockchain/reactor.go +++ b/blockchain/reactor.go @@ -121,6 +121,8 @@ func (bcR *BlockchainReactor) AddPeer(peer p2p.Peer) { if !peer.Send(BlockchainChannel, struct{ BlockchainMessage }{&bcStatusResponseMessage{bcR.store.Height()}}) { // doing nothing, will try later in `poolRoutine` } + // peer is added to the pool once we receive the first + // bcStatusResponseMessage from the peer and call pool.SetPeerHeight } // RemovePeer implements Reactor by removing peer from the pool.