Jeiwan / blockchain_go

A simplified blockchain implementation in Golang
4.14k stars 1.17k forks source link

Error with merkle tree's length #66

Open chrislee87 opened 5 years ago

chrislee87 commented 5 years ago

Merkle tree's length should be 2^n, not 2*n. For example, when there are 5 leaf nodes, it should be append to a length of eight not six.