-
Notifications
You must be signed in to change notification settings - Fork 667
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
Fix/4721 #4748
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! It will be great to get this running against bitcoin testnet and see if it helps handle those reorgs better. Would it be possible to add a test for the bad behavior this is fixing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, but can you add a regression unit test for this? I think something as simple as injecting some synthetic entries into the indexer and the burnchain db's table would suffice.
I have added a unit test |
Fixes #4721 by mandating that a burnchain block header by resolved by a
BurnchainHeaderReader
, which will resolve a block height to at most one burnchain header.