mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 13:56:45 +00:00

* In PropagateUTXOsChangedNotifications, add the given addresses to the address list instead of replacing them. * Add StopNotifyingUtxosChangedRequestMessage to rpc.proto. * Implement StopNotifyingUTXOsChanged. * Optimize convertUTXOChangesToUTXOsChangedNotification.
38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
package appmessage
|
|
|
|
// StopNotifyingUTXOsChangedRequestMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type StopNotifyingUTXOsChangedRequestMessage struct {
|
|
baseMessage
|
|
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) *StopNotifyingUTXOsChangedRequestMessage {
|
|
return &StopNotifyingUTXOsChangedRequestMessage{
|
|
Addresses: addresses,
|
|
}
|
|
}
|
|
|
|
// StopNotifyingUTXOsChangedResponseMessage is an appmessage corresponding to
|
|
// its respective RPC message
|
|
type StopNotifyingUTXOsChangedResponseMessage struct {
|
|
baseMessage
|
|
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() *StopNotifyingUTXOsChangedResponseMessage {
|
|
return &StopNotifyingUTXOsChangedResponseMessage{}
|
|
}
|