mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +00:00
41 lines
1.4 KiB
Go
41 lines
1.4 KiB
Go
package appmessage
|
|
|
|
// StopNotifyingUTXOsChangedRequestMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type StopNotifyingUTXOsChangedRequestMessage struct {
|
|
baseMessage
|
|
ID string
|
|
Addresses []string
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *StopNotifyingUTXOsChangedRequestMessage) Command() MessageCommand {
|
|
return CmdStopNotifyingUTXOsChangedRequestMessage
|
|
}
|
|
|
|
// NewStopNotifyingUTXOsChangedRequestMessage returns a instance of the message
|
|
func NewStopNotifyingUTXOsChangedRequestMessage(addresses []string, id string) *StopNotifyingUTXOsChangedRequestMessage {
|
|
return &StopNotifyingUTXOsChangedRequestMessage{
|
|
ID: id,
|
|
Addresses: addresses,
|
|
}
|
|
}
|
|
|
|
// StopNotifyingUTXOsChangedResponseMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type StopNotifyingUTXOsChangedResponseMessage struct {
|
|
baseMessage
|
|
ID string
|
|
Error *RPCError
|
|
}
|
|
|
|
// Command returns the protocol command string for the message
|
|
func (msg *StopNotifyingUTXOsChangedResponseMessage) Command() MessageCommand {
|
|
return CmdStopNotifyingUTXOsChangedResponseMessage
|
|
}
|
|
|
|
// NewStopNotifyingUTXOsChangedResponseMessage returns a instance of the message
|
|
func NewStopNotifyingUTXOsChangedResponseMessage(id string) *StopNotifyingUTXOsChangedResponseMessage {
|
|
return &StopNotifyingUTXOsChangedResponseMessage{ID: id}
|
|
}
|