Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

No longer include :code and :heappages in execution proofs #10419

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Dec 3, 2021

So I'm opening this PR very naively. I don't really understand the design of the code of the client, but if I'm not mistaken this should remove the fact that right now :code and :heappages are included in every execution proof.

This was the case because the Substrate light client is incapable of caching the runtime code. Smoldot, however, is completely capable of doing that. Now that the Substrate light client is dead, there's no reason to keep that behavior.

This should reduce by a few megabytes the size of execution proofs.

Close #5047

@tomaka tomaka added A0-please_review Pull request needs code review. B5-clientnoteworthy C1-low PR touches the given topic and has a low impact on builders. labels Dec 3, 2021
@tomaka tomaka requested review from bkchr and arkpar December 3, 2021 13:51
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

while not my domain, makes total sense.

@tomaka tomaka requested a review from cheme December 3, 2021 14:00
@tomaka
Copy link
Contributor Author

tomaka commented Dec 3, 2021

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Checks failed for db9f59a

@bkchr bkchr merged commit a2f24d5 into paritytech:master Dec 3, 2021
@tomaka tomaka deleted the fix-5047 branch December 4, 2021 08:50
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
…h#10419)

* No longer include :code and :heap_pages in execution proofs

* Oops, forgot the line

* Rustfmt
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…h#10419)

* No longer include :code and :heap_pages in execution proofs

* Oops, forgot the line

* Rustfmt
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Light client cache runtime code
5 participants