diff --git a/lib/src/chain/chain_information.rs b/lib/src/chain/chain_information.rs index 32443e3484..0a170b2d79 100644 --- a/lib/src/chain/chain_information.rs +++ b/lib/src/chain/chain_information.rs @@ -407,11 +407,6 @@ impl<'a> ChainInformationRef<'a> { } else { return Err(ValidityError::MissingBabeSlotStartNumber); } - if finalized_block_epoch_information.epoch_index + 1 - != finalized_next_epoch_transition.epoch_index - { - return Err(ValidityError::NonLinearBabeEpochs); - } } if finalized_block_epoch_information.is_none() @@ -617,8 +612,6 @@ pub enum ValidityError { /// Finalized block is block number 0, and a Babe epoch information has been provided. This /// would imply the existence of a block -1 and below. UnexpectedBabeFinalizedEpoch, - /// Next Babe epoch number does not immediately follow current Babe epoch number. - NonLinearBabeEpochs, /// Finalized block is not number 0, but no Babe epoch information has been provided. NoBabeFinalizedEpoch, /// The slot of the finalized block is inferior to the start slot of the epoch it belongs to. diff --git a/wasm-node/CHANGELOG.md b/wasm-node/CHANGELOG.md index 33b5e94057..b7d8125596 100644 --- a/wasm-node/CHANGELOG.md +++ b/wasm-node/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixed + +- Fix crash when extracting the database of a chain when the current Babe epoch number doesn't immediately follow the previous Babe epoch number. ([#1695](https://github.com/smol-dot/smoldot/pull/1695)) + ## 2.0.21 - 2024-02-06 ### Changed