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

Add support for experimental block import strategy #3049

Merged
merged 10 commits into from
Nov 23, 2024

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Nov 19, 2024

What does it do?

Supersedes #2794

Historically aura was overcharging fork strategy for parachain at block import, but seems no longer necessary.

This PR updates nimbus to remove the NimbusBlockImport type, a wrapper that impl BlockImport only to override the fork strategy.

⚠️ Breaking Changes ⚠️

When using --experimental-block-import-strategy CLI parameter node will no longer use a custom fork strategy, instead, blocks will be considered as best when imported.

@RomarQ RomarQ added B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited D2-notlive PR doesn't change runtime code (so can't be audited) breaking Needs to be mentioned in breaking changes labels Nov 19, 2024
Copy link
Contributor

github-actions bot commented Nov 19, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2260 KB (no changes) ✅

Moonbeam runtime: 2232 KB (no changes) ✅

Moonriver runtime: 2224 KB (no changes) ✅

Compared to latest release (runtime-3300)

Moonbase runtime: 2260 KB (+232 KB compared to latest release) ⚠️

Moonbeam runtime: 2232 KB (+236 KB compared to latest release) ⚠️

Moonriver runtime: 2224 KB (+232 KB compared to latest release) ⚠️

Copy link
Contributor

github-actions bot commented Nov 19, 2024

Coverage Report

@@                     Coverage Diff                      @@
##           master   rq/block-import-pipeline      +/-   ##
============================================================
+ Coverage   74.81%                     78.94%   +4.13%     
- Files         369                        303      -66     
- Lines       94137                      88282    -5855     
============================================================
- Hits        70421                      69688     -733     
- Misses      23716                      18594    -5122     
Files Changed Coverage
/node/cli/src/cli.rs 32.93% (-0.40%) 🔽
/node/cli/src/command.rs 16.90% (-0.71%) 🔽
/node/service/src/lib.rs 61.42% (-0.83%) 🔽
/precompiles/relay-data-verifier/src/mock.rs 87.69% (+2.16%) 🔼
/runtime/moonbeam/src/xcm_config.rs 45.45% (+2.18%) 🔼
/runtime/moonbeam/tests/common/mod.rs 94.68% (-0.06%) 🔽
/runtime/moonriver/src/xcm_config.rs 45.45% (+2.18%) 🔼
/runtime/moonriver/tests/common/mod.rs 94.80% (-0.05%) 🔽

Coverage generated Fri Nov 22 13:25:53 UTC 2024

@RomarQ RomarQ self-assigned this Nov 22, 2024
@RomarQ RomarQ marked this pull request as ready for review November 22, 2024 12:18
crystalin
crystalin previously approved these changes Nov 22, 2024
@RomarQ RomarQ merged commit 7bd296e into master Nov 23, 2024
39 checks passed
@RomarQ RomarQ deleted the rq/block-import-pipeline branch November 23, 2024 13:50
@stiiifff stiiifff changed the title feat: don't override fork strategy in import_queue Add support for experimental block import stragegy Dec 5, 2024
@stiiifff stiiifff changed the title Add support for experimental block import stragegy Add support for experimental block import strategy Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B5-clientnoteworthy Changes should be mentioned in any downstream projects' release notes breaking Needs to be mentioned in breaking changes D2-notlive PR doesn't change runtime code (so can't be audited) D9-needsaudit👮 PR contains changes to fund-managing logic that should be properly reviewed and externally audited
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants