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

Enhance consensus hook and relay chain configuration in cumulus parachain system #786

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

asiniscalchi
Copy link
Member

@asiniscalchi asiniscalchi commented Sep 20, 2024

PR Type

enhancement


Description

  • Enhanced the consensus hook by changing its implementation to FixedVelocityConsensusHook.
  • Introduced new constants to configure relay chain parameters such as slot duration and block processing velocity.
  • Improved the configuration of the cumulus parachain system for better performance and reliability.

Changes walkthrough 📝

Relevant files
Enhancement
cumulus_parachain_system.rs
Enhance consensus hook with fixed velocity configuration 

runtime/laos/src/configs/cumulus_parachain_system.rs

  • Changed the ConsensusHook type to a new implementation.
  • Introduced constants for relay chain configuration.
  • Added a new type ConsensusHook with specific parameters.
  • +17/-1   

    💡 PR-Agent usage:
    Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    @asiniscalchi
    Copy link
    Member Author

    /description

    @asiniscalchi
    Copy link
    Member Author

    /describe

    @github-actions github-actions bot changed the title fix the hook for the cumulus consensus Enhance cumulus consensus hook and relay number configuration Sep 20, 2024
    Copy link

    PR Description updated to latest commit (68a78b5)

    @asiniscalchi
    Copy link
    Member Author

    /describe

    @github-actions github-actions bot changed the title Enhance cumulus consensus hook and relay number configuration Enhance consensus hook and relay chain configuration in cumulus parachain system Sep 20, 2024
    Copy link

    PR Description updated to latest commit (0c3c794)

    @@ -39,11 +39,27 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
    type XcmpMessageHandler = XcmpQueue;
    type ReservedXcmpWeight = ReservedXcmpWeight;
    type CheckAssociatedRelayNumber = cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases;
    type ConsensusHook = cumulus_pallet_parachain_system::ExpectParentIncluded;
    type ConsensusHook = ConsensusHook;
    Copy link
    Contributor

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Please, add the note regarding ExpectParentIncluded, as this type "handles the migration to asynchronous backing gracefully", as per polkadot-sdk docs -> https://docs.rs/cumulus-pallet-parachain-system/latest/cumulus_pallet_parachain_system/consensus_hook/struct.ExpectParentIncluded.html and merge the PR

    @asiniscalchi asiniscalchi merged commit e711bbb into main Sep 20, 2024
    9 checks passed
    @asiniscalchi asiniscalchi deleted the feature/fix_collator_runtime_panic branch September 20, 2024 11:57
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    Parachain Collator Node Panic Due to Missing set_validation_data Inherent
    2 participants