mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 06:25:55 +00:00
fix fmt and linting
This commit is contained in:
parent
e9f7169d99
commit
ee09eb568a
@ -1,5 +1,7 @@
|
||||
package appmessage
|
||||
|
||||
// ModifyNotifyingAddressesTxsRequestMessage is an appmessage corresponding to
|
||||
// its respective RPC message
|
||||
type ModifyNotifyingAddressesTxsRequestMessage struct {
|
||||
baseMessage
|
||||
AddAddresses []string
|
||||
@ -41,7 +43,7 @@ func (msg *ModifyNotifyingAddressesTxsResponseMessage) Command() MessageCommand
|
||||
return CmdModifyNotifyingAddressesTxsResponseMessage
|
||||
}
|
||||
|
||||
// NewModifyNotifyingAddressesTxsesponseMessage returns a instance of the message
|
||||
// NewModifyNotifyingAddressesTxsResponseMessage returns a instance of the message
|
||||
func NewModifyNotifyingAddressesTxsResponseMessage() *NotifyAddressesTxsResponseMessage {
|
||||
return &NotifyAddressesTxsResponseMessage{}
|
||||
}
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package appmessage
|
||||
|
||||
// ModifyNotifyingTxsConfirmationChangedRequestMessage is an appmessage corresponding to
|
||||
// its respective RPC message
|
||||
type ModifyNotifyingTxsConfirmationChangedRequestMessage struct {
|
||||
baseMessage
|
||||
AddTxIDs []string
|
||||
@ -36,7 +38,7 @@ func (msg *ModifyNotifyingTxsConfirmationChangedResponseMessage) Command() Messa
|
||||
return CmdModifyNotifyingTxsConfirmationChangedResponseMessage
|
||||
}
|
||||
|
||||
// NewModifyNotifyingTXChangedResponseMessage returns a instance of the message
|
||||
// NewModifyNotifyingTxsChangedResponseMessage returns a instance of the message
|
||||
func NewModifyNotifyingTxsChangedResponseMessage() *NotifyTxsConfirmationChangedResponseMessage {
|
||||
return &NotifyTxsConfirmationChangedResponseMessage{}
|
||||
}
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
|
||||
package appmessage
|
||||
|
||||
// NotifyAddressesTxsRequestMessage is an appmessage corresponding to
|
||||
@ -41,7 +40,7 @@ func (msg *NotifyAddressesTxsResponseMessage) Command() MessageCommand {
|
||||
return CmdNotifyAddressesTxsResponseMessage
|
||||
}
|
||||
|
||||
// NewNotifyTXChangedResponseMessage returns a instance of the message
|
||||
// NewNotifyAddressesTxsResponseMessage returns a instance of the message
|
||||
func NewNotifyAddressesTxsResponseMessage() *NotifyAddressesTxsResponseMessage {
|
||||
return &NotifyAddressesTxsResponseMessage{}
|
||||
}
|
||||
@ -54,7 +53,6 @@ type AddressesTxsNotificationMessage struct {
|
||||
Pending *TxEntriesByAddresses
|
||||
Confirmed *TxEntriesByAddresses
|
||||
Unconfirmed *TxEntriesByAddresses
|
||||
|
||||
}
|
||||
|
||||
// Command returns the protocol command string for the message
|
||||
|
||||
@ -36,7 +36,7 @@ func (msg *NotifyTxsConfirmationChangedResponseMessage) Command() MessageCommand
|
||||
return CmdNotifyTxsConfirmationChangedResponseMessage
|
||||
}
|
||||
|
||||
// NewNotifyTXChangedResponseMessage returns a instance of the message
|
||||
// NewNotifyTxsChangedResponseMessage returns a instance of the message
|
||||
func NewNotifyTxsChangedResponseMessage() *NotifyTxsConfirmationChangedResponseMessage {
|
||||
return &NotifyTxsConfirmationChangedResponseMessage{}
|
||||
}
|
||||
@ -49,7 +49,6 @@ type TxsConfirmationChangedNotificationMessage struct {
|
||||
Pending []*TxIDConfirmationsPair
|
||||
Confirmed []*TxIDConfirmationsPair
|
||||
UnconfirmedTxIds []string
|
||||
|
||||
}
|
||||
|
||||
// Command returns the protocol command string for the message
|
||||
|
||||
@ -55,7 +55,6 @@ func (x *ModifyNotifyingTxsConfirmationChangedResponseMessage) toAppMessage() (a
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
func (x *KaspadMessage_ModifyNotifyingTxsConfirmationChangedResponse) fromAppMessage(message *appmessage.ModifyNotifyingTxsConfirmationChangedResponseMessage) error {
|
||||
var err *RPCError
|
||||
if message.Error != nil {
|
||||
|
||||
@ -122,7 +122,6 @@ func (x *AddressesTxsNotificationMessage) toAppMessage() (appmessage.Message, er
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
func (x *TxEntriesByAddresses) toAppMessage() (*appmessage.TxEntriesByAddresses, error) {
|
||||
if x == nil {
|
||||
return nil, errors.Wrapf(errorNil, "TxEntriesByAddresses is nil")
|
||||
@ -146,7 +145,6 @@ func (x *TxEntriesByAddresses) toAppMessage() (*appmessage.TxEntriesByAddresses,
|
||||
received[i] = entry
|
||||
}
|
||||
|
||||
|
||||
return &appmessage.TxEntriesByAddresses{
|
||||
Sent: sent,
|
||||
Received: received,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user