blockchain: add comment in AddPeer. closes #666

This commit is contained in:
Ethan Buchman
2017-11-08 02:42:27 +00:00
parent c0e2649ed6
commit 12b25fdf6e

View File

@@ -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.