Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests around cloneAsHeader() #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rnicoll
Copy link
Collaborator

@rnicoll rnicoll commented Jan 9, 2022

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.

Copy link
Member

@michilumin michilumin left a comment

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 changed the base branch from 0.16 to main February 12, 2022 11:18
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