Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -348,6 +349,15 @@ where
NumberFor<Block>: BlockNumberOps,
NB: sc_network::NetworkBackend<Block, <Block as BlockT>::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 {
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading