Fix case where 0 headers are retrieved.
This commit is contained in:
parent
dabb8000fb
commit
92f1de6dd9
1 changed files with 3 additions and 0 deletions
|
@ -839,6 +839,9 @@ func (sp *serverPeer) OnGetCFHeaders(_ *peer.Peer, msg *wire.MsgGetCFHeaders) {
|
|||
peerLog.Warnf("Header lookup failed: %v", err)
|
||||
return
|
||||
}
|
||||
if len(hashList) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
// Generate cfheaders message and send it.
|
||||
headersMsg := wire.NewMsgCFHeaders()
|
||||
|
|
Loading…
Add table
Reference in a new issue