-
Notifications
You must be signed in to change notification settings - Fork 471
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
ledger: restore block listeners on reloadLedger #6041
ledger: restore block listeners on reloadLedger #6041
Conversation
* algorand#6039 discovered blockNotifier preserves state between ledger reloads that breaks assumptions on how trackers work * Made node to clear and re-register block listeners explicitly on fast catchup. * Also removed unused blockListeners argument from data.Ledger
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6041 +/- ##
==========================================
+ Coverage 55.87% 55.89% +0.02%
==========================================
Files 482 482
Lines 68593 68592 -1
==========================================
+ Hits 38324 38340 +16
+ Misses 27658 27646 -12
+ Partials 2611 2606 -5 ☔ View full report in Codecov by Sentry. |
318baa2
to
8d4d0db
Compare
8d4d0db
to
c5723fa
Compare
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.
Simple enough but I wanted to clarify something for my own understanding
Summary
reloadLedger
Test Plan
Existing tests including
TestNodeTxHandlerRestart
andTestNodeTxSyncRestart
passed locally.