Skip to content

Commit

Permalink
add tx id to broadcast error log so we can trace it (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 authored Sep 12, 2024
1 parent a136e26 commit 0c53c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/bfg/bfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (s *Server) handleOneBroadcastRequest(ctx context.Context, highPriority boo

_, err = s.btcClient.Broadcast(ctx, serializedTx)
if err != nil {
log.Errorf("broadcast tx: %s", err)
log.Errorf("broadcast tx %s: %s", mb.TxID(), err)
err = s.db.BtcTransactionBroadcastRequestSetLastError(ctx, mb.TxID(), err.Error())
if err != nil {
log.Errorf("could not delete %v", err)
Expand Down

0 comments on commit 0c53c86

Please sign in to comment.