From 47db693497cbd3b72b27f383873be2ec457ed826 Mon Sep 17 00:00:00 2001 From: Nithish Karthik Date: Thu, 11 Apr 2024 23:11:29 +0530 Subject: [PATCH] test --- src/mining/merkle_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mining/merkle_tree.go b/src/mining/merkle_tree.go index 90dd75d..ae3f189 100644 --- a/src/mining/merkle_tree.go +++ b/src/mining/merkle_tree.go @@ -79,7 +79,7 @@ func CalcMerkleRoot(transactions []*transaction.Transaction, witness bool) [32]b if(witness){ txids = append(txids, [32]byte(utils.DoubleHash(t.RawHex()))) } else { - txids = append(txids, [32]byte(t.TxHash())) + txids = append(txids, [32]byte(utils.ReverseBytes(t.TxHash()))) } }