main: Improve comment for headers peer message.

This commit is contained in:
Alex Bosworth 2017-03-21 11:01:49 -07:00 committed by Dave Collins
parent 6788df79f1
commit efb4ab430c

View file

@ -716,7 +716,8 @@ func (b *blockManager) fetchHeaderBlocks() {
}
}
// handleHeadersMsghandles headers messages from all peers.
// handleHeadersMsg handles block header messages from all peers. Headers are
// requested when performing a headers-first sync.
func (b *blockManager) handleHeadersMsg(hmsg *headersMsg) {
// The remote peer is misbehaving if we didn't request headers.
msg := hmsg.headers