Browse Source

blockchain: add comment in AddPeer. closes #666

pull/824/head
Ethan Buchman 7 years ago
parent
commit
12b25fdf6e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      blockchain/reactor.go

+ 2
- 0
blockchain/reactor.go 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.


Loading…
Cancel
Save