mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 04:27:57 +00:00
Unify SyncMode data structures under one (#14465)
This commit is contained in:
@@ -234,7 +234,7 @@ impl Configuration {
|
||||
/// Returns true if the genesis state writting will be skipped while initializing the genesis
|
||||
/// block.
|
||||
pub fn no_genesis(&self) -> bool {
|
||||
matches!(self.network.sync_mode, SyncMode::Fast { .. } | SyncMode::Warp { .. })
|
||||
matches!(self.network.sync_mode, SyncMode::LightState { .. } | SyncMode::Warp { .. })
|
||||
}
|
||||
|
||||
/// Returns the database config for creating the backend.
|
||||
|
||||
Reference in New Issue
Block a user