You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dash-spv: masternode sync stays Synced while its newest list falls behind the header tip #1366
When a tip update is given up (MasternodesManager::settle_diff, DiffOutcome::GivenUp with DiffKind::TipUpdate, dash-spv/src/sync/masternodes/manager.rs:507), the manager records given_up_tip and returns, so its state stays Synced. SyncProgress::is_synced (sync/progress.rs:71) only checks that every manager reports Synced; it has no notion of freshness. After a run of failed tip updates (a peer that never answers, a refused diff), the client reports a fully synced masternode list while the newest list lags the header tip, until a later tip update succeeds.
Consumers that treat Synced as a health signal get the wrong answer. dashpay/platform#3417 works around it: its SPV readiness also requires the newest list to be within two blocks of the header tip, because misses on a stale list would otherwise get honest Platform nodes banned.
#954 covers the related case of an exhausted initial QRInfo budget. This is the incremental tip-update path after the initial sync.
Possible directions:
expose the newest list's height next to the header tip in the masternode progress, so consumers apply their own lag policy; or
leave Synced while the newest list lags the tip by more than N blocks after a given-up tip update.
Activity