Skip to content

Why pow.Validate() false #86

@zero-guixu

Description

@zero-guixu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions