mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-26 23:46:08 +00:00
26 lines
665 B
Go
26 lines
665 B
Go
package appmessage
|
|
|
|
// MsgTrustedData represents a c4ex 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
|
|
}
|