Skip to content

Commit

Permalink
test4
Browse files Browse the repository at this point in the history
  • Loading branch information
humblenginr committed Apr 11, 2024
1 parent a5387cc commit 346ceea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mining/merkle_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ func CalcMerkleRoot(transactions []*transaction.Transaction, witness bool) [32]b
for _ ,t := range transactions {
if(t.Vin[0].IsCoinbase) {
txids = append(txids, zeroHash)
}
if(witness){
} else if(witness){
txids = append(txids, [32]byte(utils.DoubleHash(t.RawHex())))
} else {
txids = append(txids, [32]byte(utils.ReverseBytes(t.TxHash())))
Expand Down

0 comments on commit 346ceea

Please sign in to comment.