Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
fix: error returning while broadcasting with go-broadcast-client
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Sep 19, 2023
1 parent 8241acd commit e01d7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chainstate/broadcast_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func broadcastWithBroadcastClient(ctx context.Context, client ClientInterface, t
result, err := client.BroadcastClient().SubmitTransaction(ctx, &tx)
if err != nil {
debugLog(client, txID, "error broadcast request for "+ProviderBroadcastClient+" failed: "+err.Error())
return nil //nolint:nilerr // err is being reported but not returned
return err
}

debugLog(client, txID, "result broadcast request for "+ProviderBroadcastClient+" blockhash: "+result.BlockHash+" status: "+result.TxStatus.String())
Expand Down

0 comments on commit e01d7cd

Please sign in to comment.