kaspad/app/appmessage/rpc_modify_notifying_txs_confirmation_changed.go
2022-10-16 13:44:48 +02:00

45 lines
1.7 KiB
Go

package appmessage
// ModifyNotifyingTxsConfirmationChangedRequestMessage is an appmessage corresponding to
// its respective RPC message
type ModifyNotifyingTxsConfirmationChangedRequestMessage struct {
baseMessage
AddTxIDs []string
RemoveTxIDs []string
RequiredConfirmations uint32
IncludePending bool
}
// Command returns the protocol command string for the message
func (msg *ModifyNotifyingTxsConfirmationChangedRequestMessage) Command() MessageCommand {
return CmdModifyNotifyingTxsConfirmationChangedRequestMessage
}
// NewModifyNotifyingTxsConfirmationChangedRequestMessage returns a instance of the message
func NewModifyNotifyingTxsConfirmationChangedRequestMessage(addTxIDs []string, removeTxIDs []string,
requiredConfirmations uint32, includePending bool) *ModifyNotifyingTxsConfirmationChangedRequestMessage {
return &ModifyNotifyingTxsConfirmationChangedRequestMessage{
AddTxIDs: addTxIDs,
RemoveTxIDs: removeTxIDs,
RequiredConfirmations: requiredConfirmations,
IncludePending: includePending,
}
}
// ModifyNotifyingTxsConfirmationChangedResponseMessage is an appmessage corresponding to
// its respective RPC message
type ModifyNotifyingTxsConfirmationChangedResponseMessage struct {
baseMessage
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *ModifyNotifyingTxsConfirmationChangedResponseMessage) Command() MessageCommand {
return CmdModifyNotifyingTxsConfirmationChangedResponseMessage
}
// NewModifyNotifyingTxsChangedResponseMessage returns a instance of the message
func NewModifyNotifyingTxsChangedResponseMessage() *NotifyTxsConfirmationChangedResponseMessage {
return &NotifyTxsConfirmationChangedResponseMessage{}
}