Skip to content

Commit

Permalink
fix: use correct error variable (#619)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored May 13, 2024
1 parent 2e339be commit 25008d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ledger/verify_block_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func VerifyBlockBody(data string, blockBodyHash string) (bool, error) {
var calculateBlockBodyHashByte [32]byte
if len(txsRaw) == 0 {
zeroTxHash, decodeZTHError := hex.DecodeString(BLOCK_BODY_HASH_ZERO_TX_HEX)
if err != nil {
if decodeZTHError != nil {
return false, fmt.Errorf("VerifyBlockBody: zeroTxHash decode error, %v", decodeZTHError.Error())
}
copy(calculateBlockBodyHashByte[:], zeroTxHash[:32])
Expand Down

0 comments on commit 25008d4

Please sign in to comment.