From f5494cf685d616fd382a55fa66a5b75eaa2792c2 Mon Sep 17 00:00:00 2001 From: Nithish Karthik Date: Thu, 11 Apr 2024 23:07:50 +0530 Subject: [PATCH] reverse txids --- 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 b1ac10a..90dd75d 100644 --- a/src/mining/merkle_tree.go +++ b/src/mining/merkle_tree.go @@ -90,7 +90,7 @@ func generateMerkleRoot(txids [][32]byte) [32]byte { level := make([][32]byte, 0) for _,t := range txids { - level = append(level, t) + level = append(level, [32]byte(utils.ReverseBytes(t[:]))) } for len(level)>1 {