We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
I have fund why This is because the byte array serialized by GOB data may be inconsistent。 you can find the sloution in https://github.com/corgi-kx/blockchain_golang
Check #92
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: