From 975bdc3905031f0320c281a60a4d9dbd95de0932 Mon Sep 17 00:00:00 2001 From: Dylan Murray Date: Tue, 24 Sep 2024 08:41:32 -0400 Subject: [PATCH] Update to go-bn 0.0.5 --- app/config/mocks/mocks.go | 4 ++-- app/config/node.go | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/config/mocks/mocks.go b/app/config/mocks/mocks.go index 5e008d0..17ce0a5 100644 --- a/app/config/mocks/mocks.go +++ b/app/config/mocks/mocks.go @@ -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 } @@ -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) } diff --git a/app/config/node.go b/app/config/node.go index df5d992..a5a8481 100644 --- a/app/config/node.go +++ b/app/config/node.go @@ -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) } @@ -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) } diff --git a/go.mod b/go.mod index 5c7441c..2d3869d 100644 --- a/go.mod +++ b/go.mod @@ -211,7 +211,7 @@ require ( replace github.com/libsv/go-bt/v2 => github.com/ordishs/go-bt/v2 v2.2.5 // Use this specific version of go-bn (galt-tr vs libsv) -replace github.com/libsv/go-bn => github.com/galt-tr/go-bn v0.0.4 +replace github.com/libsv/go-bn => github.com/galt-tr/go-bn v0.0.5 // Using a fork of go-sqlite3 replace gorm.io/driver/sqlite => github.com/glebarez/sqlite v1.10.0 diff --git a/go.sum b/go.sum index e24cd50..68f658c 100644 --- a/go.sum +++ b/go.sum @@ -82,8 +82,8 @@ github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7z github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= -github.com/galt-tr/go-bn v0.0.4 h1:fvY5IO397mhsdzwWirICzVRVXR0XRRych4D5WkW3qFY= -github.com/galt-tr/go-bn v0.0.4/go.mod h1:U8pPMrGIG/Q0vslgvDrU9fVWskX2kX1+lcmhffF+om4= +github.com/galt-tr/go-bn v0.0.5 h1:p+KvXWi4g0JpwpyGpLY9TYMRpa3saDjsOdkFxSMq69Y= +github.com/galt-tr/go-bn v0.0.5/go.mod h1:U8pPMrGIG/Q0vslgvDrU9fVWskX2kX1+lcmhffF+om4= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= github.com/glebarez/go-sqlite v1.22.0 h1:uAcMJhaA6r3LHMTFgP0SifzgXg46yJkgxqyuyec+ruQ= github.com/glebarez/go-sqlite v1.22.0/go.mod h1:PlBIdHe0+aUEFn+r2/uthrWq4FxbzugL0L8Li6yQJbc=