mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Copy blockrelay flows to v4 * Remove duplicate sending of the same DAA blocks * Advance testnet version * Renames and add comments * Add IBD test between v3 and v4 * Fix syncee v4 p2p version * Check if netsync finished with selected tip
26 lines
666 B
Go
26 lines
666 B
Go
package appmessage
|
|
|
|
// MsgTrustedData represents a kaspa TrustedData message
|
|
type MsgTrustedData struct {
|
|
baseMessage
|
|
|
|
DAAWindow []*TrustedDataDAAHeader
|
|
GHOSTDAGData []*BlockGHOSTDAGDataHashPair
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *MsgTrustedData) Command() MessageCommand {
|
|
return CmdTrustedData
|
|
}
|
|
|
|
// NewMsgTrustedData returns a new MsgTrustedData.
|
|
func NewMsgTrustedData() *MsgTrustedData {
|
|
return &MsgTrustedData{}
|
|
}
|
|
|
|
// TrustedDataDAAHeader is an appmessage representation of externalapi.TrustedDataDataDAAHeader
|
|
type TrustedDataDAAHeader struct {
|
|
Header *MsgBlockHeader
|
|
GHOSTDAGData *BlockGHOSTDAGData
|
|
}
|