-
Notifications
You must be signed in to change notification settings - Fork 106
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
change(rpc): Adds a TrustedChainSync struct for keeping up with Zebra's non-finalized best chain from a separate process #8596
Conversation
…bool to try enabling elasticsearch
…hain tip sender when the finalized tip has changed.
…g a block unless it has the missing block error code.
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.
looks really good, thank you.
@Mergifyio refresh |
✅ Pull request refreshed |
@arya2 seems like zebra is failing to build https://github.com/ZcashFoundation/zebra/actions/runs/9767174563/job/27038729170?pr=8596 |
Re-running by a CI failure in |
Motivation
We want to use the
ChainTipChange
struct and access blocks in Zebra's non-finalized best chain from zebra-scan while it runs as a separate process.Closes #8580.
Closes #8576.
PR Author Checklist
Check before marking the PR as ready for review:
For significant changes:
If a checkbox isn't relevant to the PR, mark it as done.
Solution
Adds a
TrustedChainSync
struct for:ChainTipSender
when a new block has been committed to the non-finalized state, andChainTipSender
when the finalized tip changesTesting
A new test was added to check that the syncer behaves as expected when:
Review
Anyone can review.
Reviewer Checklist
Check before approving the PR:
PR blockers can be dealt with in new tickets or PRs.
And check the PR Author checklist is complete.