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

Commit

Permalink
feat(BUX-290): logging for unable-to-verify transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Nov 3, 2023
1 parent 41f4445 commit c0d0218
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chainstate/merkle_root.go
Original file line number Diff line number Diff line change
@@ -19,6 +19,11 @@ func (c *Client) VerifyMerkleRoots(ctx context.Context, merkleRoots []MerkleRoot
c.options.logger.Warn(context.Background(), "Warn: Not all merkle roots confirmed")
return errors.New("not all merkle roots confirmed")
}

if merkleRootsRes.ConfirmationState == UnableToVerify {
c.options.logger.Warn(context.Background(), "Warn: Some merkle roots were unable to be verified. Proceeding regardless.")
}

return nil
}

0 comments on commit c0d0218

Please sign in to comment.