diff --git a/dash-spv/src/sync/filters/manager.rs b/dash-spv/src/sync/filters/manager.rs index 521af307c..f3f0c93c4 100644 --- a/dash-spv/src/sync/filters/manager.rs +++ b/dash-spv/src/sync/filters/manager.rs @@ -139,7 +139,11 @@ impl bool { + /// + /// `pub(super)` so the resume decision in `start_sync` can be taken on the + /// same predicate `start_download` asserts. Checking a subset there is how + /// a disconnect/reconnect cycle used to reach that assert. + pub(super) fn is_idle(&self) -> bool { self.active_batches.is_empty() && self.tracker.is_empty() && self.pending_batches.is_empty() @@ -1076,7 +1080,21 @@ impl