libdohj icon indicating copy to clipboard operation
libdohj copied to clipboard

Add tests around cloneAsHeader()

Open rnicoll opened this issue 3 years ago • 0 comments

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.

rnicoll avatar Jan 09 '22 21:01 rnicoll