diff --git a/internal/metamorph/processor.go b/internal/metamorph/processor.go index c76be5c87..bc052cd7d 100644 --- a/internal/metamorph/processor.go +++ b/internal/metamorph/processor.go @@ -9,12 +9,13 @@ import ( "sync" "time" - "github.com/bitcoin-sv/arc/internal/blocktx/blocktx_api" - "github.com/bitcoin-sv/arc/internal/metamorph/metamorph_api" - "github.com/bitcoin-sv/arc/internal/metamorph/store" "github.com/libsv/go-p2p" "github.com/libsv/go-p2p/chaincfg/chainhash" "google.golang.org/protobuf/proto" + + "github.com/bitcoin-sv/arc/internal/blocktx/blocktx_api" + "github.com/bitcoin-sv/arc/internal/metamorph/metamorph_api" + "github.com/bitcoin-sv/arc/internal/metamorph/store" ) const ( @@ -540,7 +541,7 @@ func (p *Processor) StartRequestingSeenOnNetworkTxs() { for _, tx := range seenOnNetworkTxs { // by requesting tx, blocktx checks if it has the transaction mined in the database and sends it back if err = p.mqClient.Publish(RequestTxTopic, tx.Hash[:]); err != nil { - p.logger.Error("failed to request tx from blocktx", slog.String("hash", tx.Hash.String())) + p.logger.Error("failed to request tx from blocktx", slog.String("hash", tx.Hash.String()), slog.String("err", err.Error())) } } } diff --git a/internal/woc_client/woc_client.go b/internal/woc_client/woc_client.go index 20c9c74a8..55384119c 100644 --- a/internal/woc_client/woc_client.go +++ b/internal/woc_client/woc_client.go @@ -210,7 +210,7 @@ func (w *WocClient) GetBalanceWithRetries(ctx context.Context, address string, c } notify := func(err error, nextTry time.Duration) { - w.logger.Error("failed to get utxos from WoC", slog.String("address", address), slog.String("next try", nextTry.String()), slog.String("err", err.Error())) + w.logger.Error("failed to get balance from WoC", slog.String("address", address), slog.String("next try", nextTry.String()), slog.String("err", err.Error())) } balanceRes, err := backoff.RetryNotifyWithData(operation, policyContext, notify)