mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-24 00:51:07 +00:00
Cleanup light client leftovers (#11865)
* Remove --light cli option * Cleanup light client leftovers * Remove commented-out code and clean-up more light client leftovers * Fix formatting with `cargo +nightly fmt` * Remove FIXME regarding db directory structure Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
This commit is contained in:
@@ -245,15 +245,11 @@ where
|
||||
};
|
||||
|
||||
let chain_sync = (params.create_chain_sync)(
|
||||
if params.role.is_light() {
|
||||
SyncMode::Light
|
||||
} else {
|
||||
match params.network_config.sync_mode {
|
||||
config::SyncMode::Full => SyncMode::Full,
|
||||
config::SyncMode::Fast { skip_proofs, storage_chain_mode } =>
|
||||
SyncMode::LightState { skip_proofs, storage_chain_mode },
|
||||
config::SyncMode::Warp => SyncMode::Warp,
|
||||
}
|
||||
match params.network_config.sync_mode {
|
||||
config::SyncMode::Full => SyncMode::Full,
|
||||
config::SyncMode::Fast { skip_proofs, storage_chain_mode } =>
|
||||
SyncMode::LightState { skip_proofs, storage_chain_mode },
|
||||
config::SyncMode::Warp => SyncMode::Warp,
|
||||
},
|
||||
params.chain.clone(),
|
||||
warp_sync_provider,
|
||||
@@ -489,7 +485,6 @@ where
|
||||
|
||||
let (tx_handler, tx_handler_controller) = transactions_handler_proto.build(
|
||||
service.clone(),
|
||||
params.role,
|
||||
params.transaction_pool,
|
||||
params.metrics_registry.as_ref(),
|
||||
)?;
|
||||
|
||||
Reference in New Issue
Block a user