mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-28 22:49:49 +00:00
WarpSync: Show number of required peers in informant (#14190)
This makes it for the user more obvious on what we are waiting and not just "waiting for peers".
This commit is contained in:
1 parent
2decceef76
commit
918d1ef80d
2 files changed
+9
-4
No files matched your search
@@ -515,8 +515,12 @@ where
|
||||
phase: WarpSyncPhase::DownloadingBlocks(gap_sync.best_queued_number),
|
||||
total_bytes: 0,
|
||||
}),
|
||||
(None, SyncMode::Warp, _) =>
|
||||
Some(WarpSyncProgress { phase: WarpSyncPhase::AwaitingPeers, total_bytes: 0 }),
|
||||
(None, SyncMode::Warp, _) => Some(WarpSyncProgress {
|
||||
phase: WarpSyncPhase::AwaitingPeers {
|
||||
required_peers: MIN_PEERS_TO_START_WARP_SYNC,
|
||||
},
|
||||
total_bytes: 0,
|
||||
}),
|
||||
(Some(sync), _, _) => Some(sync.progress()),
|
||||
_ => None,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user