mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-28 01:36:42 +00:00

* [NOD-1525] Implement headers first IBD * [NOD-1525] Fix proto translators * [NOD-1525] Register missing flows * [NOD-1525] Rename SyncStateNormal->SyncStateRelay, simplifiy IBD peer selection code and get rid of panic in FinishIBD * [NOD-1525] Remove redundant methods from interface
27 lines
905 B
Go
27 lines
905 B
Go
package appmessage
|
|
|
|
import (
|
|
"github.com/kaspanet/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// MsgRequestIBDRootUTXOSetAndBlock implements the Message interface and represents a kaspa
|
|
// RequestIBDRootUTXOSetAndBlock message. It is used to request the UTXO set and block body
|
|
// of the IBD root block.
|
|
type MsgRequestIBDRootUTXOSetAndBlock struct {
|
|
baseMessage
|
|
IBDRoot *externalapi.DomainHash
|
|
}
|
|
|
|
// Command returns the protocol command string for the message. This is part
|
|
// of the Message interface implementation.
|
|
func (msg *MsgRequestIBDRootUTXOSetAndBlock) Command() MessageCommand {
|
|
return CmdRequestIBDRootUTXOSetAndBlock
|
|
}
|
|
|
|
// NewMsgRequestIBDRootUTXOSetAndBlock returns a new MsgRequestIBDRootUTXOSetAndBlock.
|
|
func NewMsgRequestIBDRootUTXOSetAndBlock(ibdRoot *externalapi.DomainHash) *MsgRequestIBDRootUTXOSetAndBlock {
|
|
return &MsgRequestIBDRootUTXOSetAndBlock{
|
|
IBDRoot: ibdRoot,
|
|
}
|
|
}
|