diff --git a/node/src/service.rs b/node/src/service.rs index 8edcdc0548..2dc9cbd479 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -9,6 +9,7 @@ use sc_consensus::{ }; use sc_consensus_grandpa::BlockNumberOps; use sc_consensus_slots::BackoffAuthoringOnFinalizedHeadLagging; +use sc_network::config::SyncMode; use sc_network_sync::strategy::warp::{WarpSyncConfig, WarpSyncProvider}; use sc_service::{Configuration, PartialComponents, TaskManager, error::Error as ServiceError}; use sc_telemetry::{Telemetry, TelemetryHandle, TelemetryWorker, log}; @@ -348,6 +349,15 @@ where NumberFor: BlockNumberOps, NB: sc_network::NetworkBackend::Hash>, { + // Substrate doesn't seem to support fast sync option in our configuration. + if matches!(config.network.sync_mode, SyncMode::LightState { .. }) { + log::error!( + "Supported sync modes: full, warp. Provided: {:?}", + config.network.sync_mode + ); + return Err(ServiceError::Other("Unsupported sync mode".to_string())); + } + let build_import_queue = if sealing.is_some() { build_manual_seal_import_queue } else { diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 384e841072..19b44a6e0b 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -218,7 +218,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 292, + spec_version: 293, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,