Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor chain information building process #2845

Merged
merged 13 commits into from
Oct 10, 2022
4 changes: 4 additions & 0 deletions bin/wasm-node/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Changed

- The warp syncing algorithm no longer downloads the runtime code and the runtime call proofs at the same time. Instead, it now first downloads the runtime, then checks the list of available functions, then downloads runtime call proofs. While this slightly degrades the warp syncing time by adding a round-trip time, it is more correct to first analyze the runtime instead of blindly assuming that it supports a certain set of functions. ([#2845](https://github.com/paritytech/smoldot/pull/2845))

### Fixed

- Fix the responses to libp2p identify requests being wrongly empty. ([#2840](https://github.com/paritytech/smoldot/pull/2840))
Expand Down
12 changes: 4 additions & 8 deletions src/chain/chain_information.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@ use crate::header;
use alloc::vec::Vec;
use core::num::NonZeroU64;

pub mod aura_config;
pub mod babe_fetch_epoch;
pub mod babe_genesis_config;
pub mod grandpa_genesis_config;
pub mod build;

/// Information about the latest finalized block and state found in its ancestors.
///
Expand Down Expand Up @@ -190,8 +187,8 @@ pub enum ChainInformationConsensus {
/// Babe epoch information about the epoch the finalized block belongs to.
///
/// If the finalized block belongs to epoch #0, which starts at block #1, then this must
/// contain the information about the epoch #0, which can be found by calling
/// [`babe_genesis_config::BabeGenesisConfiguration::from_virtual_machine_prototype`].
/// contain the information about the epoch #0, which can be found by calling the
/// `BabeApi_configuration` runtime function.
///
/// Must be `None` if and only if the finalized block is block #0.
///
Expand All @@ -210,8 +207,7 @@ pub enum ChainInformationConsensus {
/// this field must contain the epoch that follows.
///
/// If the finalized block is block #0, then this must contain the information about the
/// epoch #0, which can be found by calling
/// [`babe_genesis_config::BabeGenesisConfiguration::from_virtual_machine_prototype`].
/// epoch #0, which can be found by calling the `BabeApi_configuration` runtime function.
finalized_next_epoch_transition: BabeEpochInformation,
},
}
Expand Down
178 changes: 0 additions & 178 deletions src/chain/chain_information/aura_config.rs

This file was deleted.

Loading