Skip to content

Add tests around cloneAsHeader()#61

Open
rnicoll wants to merge 1 commit into
dogecoin:mainfrom
rnicoll:test-clone-as-header
Open

Add tests around cloneAsHeader()#61
rnicoll wants to merge 1 commit into
dogecoin:mainfrom
rnicoll:test-clone-as-header

Conversation

@rnicoll

@rnicoll rnicoll commented Jan 9, 2022

Copy link
Copy Markdown
Collaborator

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 rnicoll self-assigned this Jan 9, 2022

@michilumin michilumin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First two files look fine, since they're just reorgs, need to look closer at the doge and lite tests themselves. In process.

@rnicoll
rnicoll force-pushed the test-clone-as-header branch from 0b009a4 to c344c33 Compare February 12, 2022 11:18
@rnicoll
rnicoll changed the base branch from 0.16 to main February 12, 2022 11:18
@rnicoll
rnicoll force-pushed the test-clone-as-header branch from c344c33 to 48ff5df Compare February 14, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants