diff --git a/src/mining/merkle_tree.go b/src/mining/merkle_tree.go index 4261e35..a3d1ae2 100644 --- a/src/mining/merkle_tree.go +++ b/src/mining/merkle_tree.go @@ -85,9 +85,9 @@ func (s *rollingMerkleTreeStore) calcMerkleRoot(adds []*transaction.Transaction, var zeroHash [32]byte s.add(zeroHash) case witness: - s.add([32]byte(adds[i].WitnessHash())) + s.add([32]byte(utils.ReverseBytes(adds[i].WitnessHash()))) default: - s.add([32]byte(adds[i].TxHash())) + s.add([32]byte(utils.ReverseBytes(adds[i].TxHash()))) } }