mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-27 07:48:44 +00:00
fix fmt
This commit is contained in:
parent
1dc8bbf738
commit
1f25116a91
@ -51,7 +51,7 @@ func (msg *BlockAddedNotificationMessage) Command() MessageCommand {
|
|||||||
// NewBlockAddedNotificationMessage returns a instance of the message
|
// NewBlockAddedNotificationMessage returns a instance of the message
|
||||||
func NewBlockAddedNotificationMessage(block *RPCBlock, id string) *BlockAddedNotificationMessage {
|
func NewBlockAddedNotificationMessage(block *RPCBlock, id string) *BlockAddedNotificationMessage {
|
||||||
return &BlockAddedNotificationMessage{
|
return &BlockAddedNotificationMessage{
|
||||||
Id : id,
|
Id: id,
|
||||||
Block: block,
|
Block: block,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ func (msg *NotifyFinalityConflictsRequestMessage) Command() MessageCommand {
|
|||||||
|
|
||||||
// NewNotifyFinalityConflictsRequestMessage returns a instance of the message
|
// NewNotifyFinalityConflictsRequestMessage returns a instance of the message
|
||||||
func NewNotifyFinalityConflictsRequestMessage(id string) *NotifyFinalityConflictsRequestMessage {
|
func NewNotifyFinalityConflictsRequestMessage(id string) *NotifyFinalityConflictsRequestMessage {
|
||||||
return &NotifyFinalityConflictsRequestMessage{Id : id}
|
return &NotifyFinalityConflictsRequestMessage{Id: id}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NotifyFinalityConflictsResponseMessage is an appmessage corresponding to
|
// NotifyFinalityConflictsResponseMessage is an appmessage corresponding to
|
||||||
@ -32,7 +32,7 @@ func (msg *NotifyFinalityConflictsResponseMessage) Command() MessageCommand {
|
|||||||
|
|
||||||
// NewNotifyFinalityConflictsResponseMessage returns a instance of the message
|
// NewNotifyFinalityConflictsResponseMessage returns a instance of the message
|
||||||
func NewNotifyFinalityConflictsResponseMessage(id string) *NotifyFinalityConflictsResponseMessage {
|
func NewNotifyFinalityConflictsResponseMessage(id string) *NotifyFinalityConflictsResponseMessage {
|
||||||
return &NotifyFinalityConflictsResponseMessage{Id : id}
|
return &NotifyFinalityConflictsResponseMessage{Id: id}
|
||||||
}
|
}
|
||||||
|
|
||||||
// FinalityConflictNotificationMessage is an appmessage corresponding to
|
// FinalityConflictNotificationMessage is an appmessage corresponding to
|
||||||
@ -71,7 +71,7 @@ func (msg *FinalityConflictResolvedNotificationMessage) Command() MessageCommand
|
|||||||
// NewFinalityConflictResolvedNotificationMessage returns a instance of the message
|
// NewFinalityConflictResolvedNotificationMessage returns a instance of the message
|
||||||
func NewFinalityConflictResolvedNotificationMessage(finalityBlockHash string, id string) *FinalityConflictResolvedNotificationMessage {
|
func NewFinalityConflictResolvedNotificationMessage(finalityBlockHash string, id string) *FinalityConflictResolvedNotificationMessage {
|
||||||
return &FinalityConflictResolvedNotificationMessage{
|
return &FinalityConflictResolvedNotificationMessage{
|
||||||
Id : id,
|
Id: id,
|
||||||
FinalityBlockHash: finalityBlockHash,
|
FinalityBlockHash: finalityBlockHash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ func (msg *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage) Command()
|
|||||||
|
|
||||||
// NewNotifyVirtualSelectedParentBlueScoreChangedRequestMessage returns a instance of the message
|
// NewNotifyVirtualSelectedParentBlueScoreChangedRequestMessage returns a instance of the message
|
||||||
func NewNotifyVirtualSelectedParentBlueScoreChangedRequestMessage(id string) *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage {
|
func NewNotifyVirtualSelectedParentBlueScoreChangedRequestMessage(id string) *NotifyVirtualSelectedParentBlueScoreChangedRequestMessage {
|
||||||
return &NotifyVirtualSelectedParentBlueScoreChangedRequestMessage{Id : id}
|
return &NotifyVirtualSelectedParentBlueScoreChangedRequestMessage{Id: id}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NotifyVirtualSelectedParentBlueScoreChangedResponseMessage is an appmessage corresponding to
|
// NotifyVirtualSelectedParentBlueScoreChangedResponseMessage is an appmessage corresponding to
|
||||||
@ -53,7 +53,7 @@ func NewVirtualSelectedParentBlueScoreChangedNotificationMessage(
|
|||||||
virtualSelectedParentBlueScore uint64, id string) *VirtualSelectedParentBlueScoreChangedNotificationMessage {
|
virtualSelectedParentBlueScore uint64, id string) *VirtualSelectedParentBlueScoreChangedNotificationMessage {
|
||||||
|
|
||||||
return &VirtualSelectedParentBlueScoreChangedNotificationMessage{
|
return &VirtualSelectedParentBlueScoreChangedNotificationMessage{
|
||||||
Id : id,
|
Id: id,
|
||||||
VirtualSelectedParentBlueScore: virtualSelectedParentBlueScore,
|
VirtualSelectedParentBlueScore: virtualSelectedParentBlueScore,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ func NewNotifyVirtualSelectedParentChainChangedRequestMessage(
|
|||||||
includeAcceptedTransactionIDs bool, id string) *NotifyVirtualSelectedParentChainChangedRequestMessage {
|
includeAcceptedTransactionIDs bool, id string) *NotifyVirtualSelectedParentChainChangedRequestMessage {
|
||||||
|
|
||||||
return &NotifyVirtualSelectedParentChainChangedRequestMessage{
|
return &NotifyVirtualSelectedParentChainChangedRequestMessage{
|
||||||
Id : id,
|
Id: id,
|
||||||
IncludeAcceptedTransactionIDs: includeAcceptedTransactionIDs,
|
IncludeAcceptedTransactionIDs: includeAcceptedTransactionIDs,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,7 +38,7 @@ func (msg *NotifyVirtualSelectedParentChainChangedResponseMessage) Command() Mes
|
|||||||
|
|
||||||
// NewNotifyVirtualSelectedParentChainChangedResponseMessage returns a instance of the message
|
// NewNotifyVirtualSelectedParentChainChangedResponseMessage returns a instance of the message
|
||||||
func NewNotifyVirtualSelectedParentChainChangedResponseMessage(id string) *NotifyVirtualSelectedParentChainChangedResponseMessage {
|
func NewNotifyVirtualSelectedParentChainChangedResponseMessage(id string) *NotifyVirtualSelectedParentChainChangedResponseMessage {
|
||||||
return &NotifyVirtualSelectedParentChainChangedResponseMessage{Id : id}
|
return &NotifyVirtualSelectedParentChainChangedResponseMessage{Id: id}
|
||||||
}
|
}
|
||||||
|
|
||||||
// VirtualSelectedParentChainChangedNotificationMessage is an appmessage corresponding to
|
// VirtualSelectedParentChainChangedNotificationMessage is an appmessage corresponding to
|
||||||
@ -61,7 +61,7 @@ func NewVirtualSelectedParentChainChangedNotificationMessage(removedChainBlockHa
|
|||||||
addedChainBlocks []string, acceptedTransactionIDs []*AcceptedTransactionIDs, id string) *VirtualSelectedParentChainChangedNotificationMessage {
|
addedChainBlocks []string, acceptedTransactionIDs []*AcceptedTransactionIDs, id string) *VirtualSelectedParentChainChangedNotificationMessage {
|
||||||
|
|
||||||
return &VirtualSelectedParentChainChangedNotificationMessage{
|
return &VirtualSelectedParentChainChangedNotificationMessage{
|
||||||
Id : id,
|
Id: id,
|
||||||
RemovedChainBlockHashes: removedChainBlockHashes,
|
RemovedChainBlockHashes: removedChainBlockHashes,
|
||||||
AddedChainBlockHashes: addedChainBlocks,
|
AddedChainBlockHashes: addedChainBlocks,
|
||||||
AcceptedTransactionIDs: acceptedTransactionIDs,
|
AcceptedTransactionIDs: acceptedTransactionIDs,
|
||||||
|
|||||||
@ -92,7 +92,7 @@ func (m *Manager) notifyBlockAddedToDAG(block *externalapi.DomainBlock) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
blockAddedNotification := appmessage.NewBlockAddedNotificationMessage(rpcBlock,"")
|
blockAddedNotification := appmessage.NewBlockAddedNotificationMessage(rpcBlock, "")
|
||||||
err = m.context.NotificationManager.NotifyBlockAdded(blockAddedNotification)
|
err = m.context.NotificationManager.NotifyBlockAdded(blockAddedNotification)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForBlockAddedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterForBlockAddedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForVirtualSelectedParentChainChangedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterForVirtualSelectedParentChainChangedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForFinalityConflictsNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterForFinalityConflictsNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForNewBlockTemplateNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterForNewBlockTemplateNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterPruningPointUTXOSetNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterPruningPointUTXOSetNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForUTXOsChangedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
// RegisterForUTXOsChangedNotifications sends an RPC request respective to the function's name and returns the RPC server's response.
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForVirtualDaaScoreChangedNotifications sends an RPC request respective to the function's
|
// RegisterForVirtualDaaScoreChangedNotifications sends an RPC request respective to the function's
|
||||||
|
|||||||
@ -2,9 +2,9 @@ package rpcclient
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/kaspanet/kaspad/app/appmessage"
|
"github.com/kaspanet/kaspad/app/appmessage"
|
||||||
|
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
||||||
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
routerpkg "github.com/kaspanet/kaspad/infrastructure/network/netadapter/router"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kaspanet/kaspad/app/rpc/rpccontext"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterForVirtualSelectedParentBlueScoreChangedNotifications sends an RPC request respective to the function's
|
// RegisterForVirtualSelectedParentBlueScoreChangedNotifications sends an RPC request respective to the function's
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user