dogecoin / libdohj

Java library for adding altcoin support to bitcoinj
Apache License 2.0
109 stars 89 forks source link

Add tests around cloneAsHeader() #61

Open rnicoll opened 2 years ago

rnicoll commented 2 years ago

Fixes a bug where cloneAsHeader() was using the previous block hash when setting merkle root, and a test to cover this scenario. Also adds a test of connecting the first Litecoin block to its genesis block.

As part of requiring extended block loading, this introduces a dedicated BlockLoader utility class.