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 {