diff --git a/blockchain/reactor.go b/blockchain/reactor.go index 5a0730305..64e5e9377 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.