Skip to content

Commit

Permalink
reverse txids
Browse files Browse the repository at this point in the history
  • Loading branch information
humblenginr committed Apr 11, 2024
1 parent 48a37f2 commit f5494cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mining/merkle_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f5494cf

Please sign in to comment.