Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request paritytech#229 from subspace/fix-SubspaceApi-version
Browse files Browse the repository at this point in the history
Fix the incorrect SubspaceApi version
  • Loading branch information
nazar-pc authored Jan 17, 2022
2 parents 5930269 + df47329 commit 9afc249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sc-consensus-subspace/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl Config {

let version = runtime_api.api_version::<dyn SubspaceApi<B>>(&best_block_id)?;

let slot_duration = if version == Some(2) {
let slot_duration = if version == Some(1) {
runtime_api.configuration(&best_block_id)?
} else {
return Err(sp_blockchain::Error::VersionInvalid(
Expand Down

0 comments on commit 9afc249

Please sign in to comment.