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

Respect heap_pages parameter. #3420

Merged
merged 1 commit into from
Aug 16, 2019
Merged

Respect heap_pages parameter. #3420

merged 1 commit into from
Aug 16, 2019

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Aug 16, 2019

Closes #3096

Currently, the :heap_pages parameter is not respected, i.e. when heap_pages is changed on chain the runtime doesn't get invalidated. This PR performs this invalidation.

Initially was spotted while implementing #3011, but then I figured that the PR was already growing unwieldy.

This PR introduces additional look up on every fetch of the current runtime. Haven't done any benchmarks yet.

@pepyakin pepyakin added the A0-please_review Pull request needs code review. label Aug 16, 2019
@pepyakin pepyakin added this to the 2.0-k milestone Aug 16, 2019
@gavofyork gavofyork added A8-looksgood and removed A0-please_review Pull request needs code review. labels Aug 16, 2019
@pepyakin pepyakin merged commit b06c4ef into master Aug 16, 2019
@pepyakin pepyakin deleted the ser-heap-pages branch August 16, 2019 13:33
@gnunicorn gnunicorn modified the milestones: 2.1, Polkadot Mar 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changes to heap_pages storage variable are not respected
4 participants