mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-23 06:22:31 +00:00
13 lines
335 B
Go
13 lines
335 B
Go
package p2p
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/peer"
|
|
"github.com/kaspanet/kaspad/wire"
|
|
)
|
|
|
|
// OnHeaders is invoked when a peer receives a headers bitcoin
|
|
// message. The message is passed down to the sync manager.
|
|
func (sp *Peer) OnHeaders(_ *peer.Peer, msg *wire.MsgHeaders) {
|
|
sp.server.SyncManager.QueueHeaders(msg, sp.Peer)
|
|
}
|