Skip to content

polkadot-runtime-api-cache: Only cache validation code that exists#11108

Merged
bkchr merged 4 commits intomasterfrom
bkchr-validation-code-only-cache-some
Feb 19, 2026
Merged

polkadot-runtime-api-cache: Only cache validation code that exists#11108
bkchr merged 4 commits intomasterfrom
bkchr-validation-code-only-cache-some

Conversation

@bkchr
Copy link
Copy Markdown
Member

@bkchr bkchr commented Feb 18, 2026

Otherwise there is the possibility that nodes cache None and some later force_set_code enacts the code. Then the nodes that have cached None do not know that the validation code now actually exists on chain.

Otherwise there is the possibility that nodes cache `None` and some later `force_set_code` enacts the code. Then the nodes that have cached `None` do not know that the validation code now actually exists on chain.
@bkchr bkchr added the T8-polkadot This PR/Issue is related to/affects the Polkadot network. label Feb 18, 2026
@bkchr
Copy link
Copy Markdown
Member Author

bkchr commented Feb 18, 2026

/cmd prdoc --audience node_dev --bump patch

@bkchr bkchr enabled auto-merge February 19, 2026 09:28
@bkchr
Copy link
Copy Markdown
Member Author

bkchr commented Feb 19, 2026

/cmd fmt

Comment thread polkadot/node/core/runtime-api/src/lib.rs Outdated
@bkchr bkchr added this pull request to the merge queue Feb 19, 2026
Merged via the queue into master with commit 6adb6c2 Feb 19, 2026
243 of 246 checks passed
@bkchr bkchr deleted the bkchr-validation-code-only-cache-some branch February 19, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants