-
Notifications
You must be signed in to change notification settings - Fork 30
chore: add reorg log #1253
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
base: master
Are you sure you want to change the base?
chore: add reorg log #1253
Conversation
|
Branch | chore/log-reorg |
Testbed | ubuntu-22.04 |
Click to view all benchmark results
Benchmark | Latency | Benchmark Result minutes (m) (Result Δ%) | Lower Boundary minutes (m) (Limit %) | Upper Boundary minutes (m) (Limit %) |
---|---|---|---|---|
sync-v2 (up to 20000 blocks) | 📈 view plot 🚷 view threshold | 1.65 m(+1.07%)Baseline: 1.63 m | 1.47 m (89.05%) | 1.80 m (91.88%) |
@@ -135,12 +135,26 @@ def unsafe_update(self, base: BaseTransaction) -> None: | |||
assert isinstance(old_best_block, Block) | |||
new_best_block = base.storage.get_transaction(new_best_tip) | |||
reorg_size = old_best_block.get_height() - context.reorg_common_block.get_height() | |||
# TODO: After we remove block ties, should the assert below be true? | |||
# assert old_best_block.get_metadata().voided_by |
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.
I don't understand why it would not be true even with block ties.
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.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1253 +/- ##
==========================================
- Coverage 84.22% 84.12% -0.11%
==========================================
Files 311 311
Lines 23868 23869 +1
Branches 3651 3651
==========================================
- Hits 20103 20079 -24
- Misses 3055 3071 +16
- Partials 710 719 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Motivation
It would be useful to track reorgs via full node logs.
Acceptance Criteria
Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged