mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 13:39:50 +00:00
Stop authoring blocks when offline (#1655)
* Don't author blocks when offline * Increased canonicalization delay * Fixed test
This commit is contained in:
1 parent
2155e44e13
commit
641bb7cb46
7 files changed
+26
-2
No files matched your search
@@ -33,6 +33,7 @@ impl network::SyncProvider<Block> for Status {
|
||||
sync: SyncStatus {
|
||||
state: if self.is_syncing { SyncState::Downloading } else { SyncState::Idle },
|
||||
best_seen_block: None,
|
||||
num_peers: self.peers as u32,
|
||||
},
|
||||
num_peers: self.peers,
|
||||
num_active_peers: 0,
|
||||
|
||||
Reference in new issue
Block a user