fix: reset FilterManager in flight state when all peers disconnect#441
fix: reset FilterManager in flight state when all peers disconnect#441xdustinface merged 2 commits intov0.42-devfrom
FilterManager in flight state when all peers disconnect#441Conversation
- Override `stop_sync` in `FiltersManager` to clear the in-flight state when all peers disconnect. - Re-initialize the filter pipeline position in `start_sync` when filters are already at the stored tip preventing `extend_target` from re-queuing from height 1 after reconnecting.
FilterManager when all peers disconnectFilterManager in flight state when all peers disconnect
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughAdds a FiltersManager utility to clear in-flight multi-batch state and resets the filter pipeline; implements Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@dash-spv/src/sync/filters/sync_manager.rs`:
- Around line 88-90: Fix the typo in the nearby comment: change "in flight state
gets resets" to "in flight state gets reset" in the comment that precedes the
call to self.filter_pipeline.init(stored_filters_tip + 1, stored_filters_tip);
leave the logic (init(stored_filters_tip + 1, stored_filters_tip)) unchanged —
only update the comment text referencing filter_pipeline.init and
stored_filters_tip.
…441) * fix: reset `FilterManager` when all peers disconnect - Override `stop_sync` in `FiltersManager` to clear the in-flight state when all peers disconnect. - Re-initialize the filter pipeline position in `start_sync` when filters are already at the stored tip preventing `extend_target` from re-queuing from height 1 after reconnecting. * Fix typo Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
stop_syncinFiltersManagerto clear the in-flight state when all peers disconnect.start_syncwhen filters are already at the stored tip preventingextend_targetfrom re-queuing from height 1 after reconnecting.Summary by CodeRabbit