From ea2407e27b08ff6ed711891d6efac6dbe20654a3 Mon Sep 17 00:00:00 2001 From: deggen Date: Tue, 7 Nov 2023 11:17:39 -0600 Subject: [PATCH] Fix/nil pointer in tree (#77) * nil pointer equality check Signed-off-by: Darren Kellenschwiler --- bump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bump.go b/bump.go index 38ff6d9..ab5010f 100644 --- a/bump.go +++ b/bump.go @@ -227,7 +227,7 @@ func NewBUMPFromMerkleTreeAndIndex(blockHeight uint64, merkleTree []*chainhash.H o := uint64(offset) thisLeaf := leaf{Offset: &o} hash := merkleTree[levelOffset+offset] - if hash.IsEqual(&chainhash.Hash{}) { + if hash.IsEqual(nil) { thisLeaf.Duplicate = &t } else { sh := hash.String()