Fix a couple of comments.
This commit is contained in:
parent
c28c6e7636
commit
8e12234c56
1 changed files with 2 additions and 3 deletions
5
peer.go
5
peer.go
|
@ -465,7 +465,7 @@ func (p *peer) handleBlockMsg(msg *btcwire.MsgBlock, buf []byte) {
|
||||||
// handleInvMsg is invoked when a peer receives an inv bitcoin message and is
|
// handleInvMsg is invoked when a peer receives an inv bitcoin message and is
|
||||||
// used to examine the inventory being advertised by the remote peer and react
|
// used to examine the inventory being advertised by the remote peer and react
|
||||||
// accordingly. We pass the message down to blockmanager which will call
|
// accordingly. We pass the message down to blockmanager which will call
|
||||||
// PushMessage with any appropraite responses.
|
// PushMessage with any appropriate responses.
|
||||||
func (p *peer) handleInvMsg(msg *btcwire.MsgInv) {
|
func (p *peer) handleInvMsg(msg *btcwire.MsgInv) {
|
||||||
p.server.blockManager.QueueInv(msg, p)
|
p.server.blockManager.QueueInv(msg, p)
|
||||||
}
|
}
|
||||||
|
@ -1084,8 +1084,7 @@ func (p *peer) Start() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shutdown gracefully shuts down the peer by disconnecting it and waiting for
|
// Shutdown gracefully shuts down the peer by disconnecting it.
|
||||||
// all goroutines to finish.
|
|
||||||
func (p *peer) Shutdown() {
|
func (p *peer) Shutdown() {
|
||||||
log.Tracef("[PEER] Shutdown peer %s", p.addr)
|
log.Tracef("[PEER] Shutdown peer %s", p.addr)
|
||||||
p.Disconnect()
|
p.Disconnect()
|
||||||
|
|
Loading…
Reference in a new issue