mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
[DEV-94] Always reply with get headers
This commit is contained in:
parent
d9abfa0fd3
commit
176aad5dcd
@ -717,10 +717,6 @@ func (sp *Peer) OnGetHeaders(_ *peer.Peer, msg *wire.MsgGetHeaders) {
|
||||
// This mirrors the behavior in the reference implementation.
|
||||
chain := sp.server.DAG
|
||||
headers := chain.LocateHeaders(msg.BlockLocatorHashes, &msg.HashStop)
|
||||
if len(headers) == 0 {
|
||||
// Nothing to send.
|
||||
return
|
||||
}
|
||||
|
||||
// Send found headers to the requesting peer.
|
||||
blockHeaders := make([]*wire.BlockHeader, len(headers))
|
||||
|
Loading…
x
Reference in New Issue
Block a user