libdohj
libdohj copied to clipboard
Add tests around cloneAsHeader()
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.