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

Lazy loading improvements #3066

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

RomarQ
Copy link
Contributor

@RomarQ RomarQ commented Dec 1, 2024

What does it do?

Improves the lazy-loading features and fixes a few bugs.

Improvements:

  • Increase the authoring deadline to 60 seconds

    Because lazy-loading fetches the storage from a remote node, sometimes, the authoring deadline to propose a block was not enough, causing some transactions to not be included in the block:
    DEBUG tokio-runtime-worker basic-authorship: [Lazy loading :last_quarter_moon:] Consensus deadline reached when pushing block transactions, proceeding with proposing.

  • Add support for proof recording when calling contextual_call in the call executor;
  • Control the inherent data passed to inherents calls when building a block

Bugs:

  • Fix race condition when querying the storage
  • Fix block finalization
    Currently, when manually sealing a block, the finalize parameter needs to be false, otherwise the block will not be built

@RomarQ RomarQ added B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited) not-breaking Does not need to be mentioned in breaking changes lazy-loading These changes affect the lazy loading feature labels Dec 1, 2024
@RomarQ RomarQ self-assigned this Dec 1, 2024
Copy link
Contributor

github-actions bot commented Dec 1, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2248 KB (no changes) ✅

Moonbeam runtime: 2228 KB (no changes) ✅

Moonriver runtime: 2224 KB (no changes) ✅

Compared to latest release (runtime-3300)

Moonbase runtime: 2248 KB (+220 KB compared to latest release) ⚠️

Moonbeam runtime: 2228 KB (+232 KB compared to latest release) ⚠️

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

Copy link
Contributor

github-actions bot commented Dec 1, 2024

Coverage Report

@@                        Coverage Diff                        @@
##           master   rq/lazy-loading-improvements4      +/-   ##
=================================================================
- Coverage   74.70%                          74.62%   -0.08%     
+ Files         369                             370       +1     
+ Lines       94308                           94406      +98     
=================================================================
- Hits        70445                           70442       -3     
+ Misses      23863                           23964     +101     
Files Changed Coverage
/node/cli/src/cli.rs 32.93% (+3.26%) 🔼
/node/cli/src/command.rs 16.90% (+0.04%) 🔼
/pallets/moonbeam-foreign-assets/build.rs 86.67% (+20.00%) 🔼

Coverage generated Sun Dec 1 16:22:58 UTC 2024

@RomarQ RomarQ changed the title Increase authoring deadline to 60 seconds when using lazy loading Lazy loading improvements Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B0-silent Changes should not be mentioned in any release notes D2-notlive PR doesn't change runtime code (so can't be audited) lazy-loading These changes affect the lazy loading feature not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants