Skip to content

Commit

Permalink
Update to go-bn 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
galt-tr committed Sep 24, 2024
1 parent acbfec8 commit 975bdc3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/config/mocks/mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Node struct {
BestBlockHashFunc func(ctx context.Context) (string, error)
InvalidateBlockFunc func(ctx context.Context, hash string) error
UnbanPeerFunc func(ctx context.Context, peer string) error
AddToConsensusBlacklistFunc func(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
AddToConsensusBlacklistFunc func(ctx context.Context, funds []models.Fund) (*models.BlacklistResponse, error)
AddToConfiscationTransactionWhitelistFunc func(ctx context.Context, tx []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
// Add additional fields if needed to track calls or results
}
Expand Down Expand Up @@ -73,7 +73,7 @@ func (n *Node) UnbanPeer(ctx context.Context, peer string) error {
}

// AddToConsensusBlacklist will call the AddToConsensusBlacklistFunc if not nil, otherwise return nil
func (n *Node) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error) {
func (n *Node) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.BlacklistResponse, error) {
if n.AddToConsensusBlacklistFunc != nil {
return n.AddToConsensusBlacklistFunc(ctx, funds)
}
Expand Down
4 changes: 2 additions & 2 deletions app/config/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type NodeInterface interface {
GetRPCUser() string
InvalidateBlock(ctx context.Context, hash string) error
UnbanPeer(ctx context.Context, peer string) error
AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error)
AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.BlacklistResponse, error)
AddToConfiscationTransactionWhitelist(ctx context.Context, tx []models.ConfiscationTransactionDetails) (*models.AddToConfiscationTransactionWhitelistResponse, error)
}

Expand Down Expand Up @@ -80,7 +80,7 @@ func (n *Node) UnbanPeer(ctx context.Context, peer string) error {
}

// AddToConsensusBlacklist adds frozen utxos to blacklist
func (n *Node) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.AddToConsensusBlacklistResponse, error) {
func (n *Node) AddToConsensusBlacklist(ctx context.Context, funds []models.Fund) (*models.BlacklistResponse, error) {
c := bn.NewNodeClient(bn.WithCreds(n.RPCUser, n.RPCPassword), bn.WithHost(n.RPCHost))
return c.AddToConsensusBlacklist(ctx, funds)
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 975bdc3

Please sign in to comment.