mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-28 00:03:39 +00:00
24 lines
731 B
Go
24 lines
731 B
Go
package appmessage
|
|
|
|
import (
|
|
"github.com/c4ei/kaspad/domain/consensus/model/externalapi"
|
|
)
|
|
|
|
// MsgRequestPruningPointUTXOSet represents a kaspa RequestPruningPointUTXOSet message
|
|
type MsgRequestPruningPointUTXOSet struct {
|
|
baseMessage
|
|
PruningPointHash *externalapi.DomainHash
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *MsgRequestPruningPointUTXOSet) Command() MessageCommand {
|
|
return CmdRequestPruningPointUTXOSet
|
|
}
|
|
|
|
// NewMsgRequestPruningPointUTXOSet returns a new MsgRequestPruningPointUTXOSet
|
|
func NewMsgRequestPruningPointUTXOSet(pruningPointHash *externalapi.DomainHash) *MsgRequestPruningPointUTXOSet {
|
|
return &MsgRequestPruningPointUTXOSet{
|
|
PruningPointHash: pruningPointHash,
|
|
}
|
|
}
|