kaspad/app/appmessage/p2p_msgpruningpoints.go
2023-08-23 15:36:21 +09:00

21 lines
481 B
Go

package appmessage
// MsgPruningPoints represents a c4ex PruningPoints message
type MsgPruningPoints struct {
baseMessage
Headers []*MsgBlockHeader
}
// Command returns the protocol command string for the message
func (msg *MsgPruningPoints) Command() MessageCommand {
return CmdPruningPoints
}
// NewMsgPruningPoints returns a new MsgPruningPoints.
func NewMsgPruningPoints(headers []*MsgBlockHeader) *MsgPruningPoints {
return &MsgPruningPoints{
Headers: headers,
}
}