I have seen the relevant questions but I did't found a solution.
in block.go i add code below
`
func (b *Block) HashTransactions() []byte { var transactions [][]byte
fmt.Println(b.Transactions)
for _, tx := range b.Transactions {
transactions = append(transactions, tx.Serialize())
}
fmt.Println(transactions)
mTree := NewMerkleTree(transactions)
return mTree.RootNode.Data
`
i found the same b.Transactions have different transactions
I have seen the relevant questions but I did't found a solution.
in block.go i add code below
`
func (b *Block) HashTransactions() []byte { var transactions [][]byte`
i found the same b.Transactions have different transactions