mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-23 22:15:54 +00:00
31 lines
853 B
Go
31 lines
853 B
Go
package appmessage
|
|
|
|
// GetPruningWindowRootsRequestMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type GetPruningWindowRootsRequestMessage struct {
|
|
baseMessage
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *GetPruningWindowRootsRequestMessage) Command() MessageCommand {
|
|
return CmdGetPruningWindowRootsRequestMessage
|
|
}
|
|
|
|
type PruningWindowRoots struct {
|
|
PPRoots []string
|
|
PPIndex uint64
|
|
}
|
|
|
|
// GetPruningWindowRootsResponseMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type GetPruningWindowRootsResponseMessage struct {
|
|
baseMessage
|
|
Roots []*PruningWindowRoots
|
|
Error *RPCError
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *GetPruningWindowRootsResponseMessage) Command() MessageCommand {
|
|
return CmdGetPruningWindowRootsResponseMessage
|
|
}
|