chaintope / bitcoinrb

The implementation of the bitcoin protocol for ruby.
MIT License
61 stars 19 forks source link

MerkleTree.build_partial fails when a block has only root node #45

Closed Yamaguchi closed 5 years ago

Yamaguchi commented 5 years ago

This PR will resolve #44 .

azuchi commented 5 years ago

As you pointed out, if the transaction in the block is only coinbase, the judgment will fail. Can you also fix MerkelTree#build_from_leaf ?

azuchi commented 5 years ago

Thanks!