Storage-backed protocol params in the local runtime + lower-timeouts tuning script#269
Draft
x3c41a wants to merge 1 commit into
Draft
Storage-backed protocol params in the local runtime + lower-timeouts tuning script#269x3c41a wants to merge 1 commit into
x3c41a wants to merge 1 commit into
Conversation
…cript Switch the 13 pallet-storage-provider parameters in the local runtime from pub const to pub storage, matching the paseo runtime: defaults are unchanged, but each can now be overridden live via sudo(System.set_storage) and falls back to the compiled default when the override key is absent. Add examples/papi/lower-timeouts.ts to drive that: --profile fast (minute-scale timing), --set Name=Value, --restore (kill_storage), --list, --dry-run. Re-checks the DeregisterAnnouncementPeriod invariants that integrity_test cannot guard at override time. First slice of #267 (short timeouts available locally).
x3c41a
marked this pull request as draft
July 7, 2026 08:32
This was referenced Jul 7, 2026
Author
|
The This PR only changes the local runtime ( The failure is try-runtime decoding live previewnet state:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First slice of #267: make short protocol timing available on local/dev chains without a wasm rebuild.
Runtime
runtimes/web3-storage-local: the 13 pallet-storage-provider parameters switch frompub consttopub storage, matching the paseo runtime. Defaults are unchanged. Each parameter lives at the unhashed keytwox128(":Name:"), can be overridden live viasudo(System.set_storage), and falls back to the compiled default while no override is present.Tooling
examples/papi/lower-timeouts.ts(orpnpm --filter web3-storage-papi-demo run lower-timeouts):--profile fast: minute-scale timing (challenge/settlement 10 min, request 5 min, checkpoint interval 2 min, dereg announcement 15 min, nonce age 1 h)--set Name=Valuefor any parameter,--restore(kill_storage, back to compiled defaults),--list,--dry-runDeregisterAnnouncementPeriod > ChallengeTimeout / RequestTimeoutinvariants, sinceintegrity_testonly runs at build time and cannot see overrides--suriis not the sudo keyWorks against both runtimes (paseo already had storage-backed params).
Tested
Live on a local zombienet: applied the fast profile (finalized, verified by raw key readback), confirmed effective values via metadata constants from a fresh process, single-param set, restore back to compiled defaults, invariant/sudo-key/range/unreachable-endpoint guards.
cargo check/clippyon the runtime crate andtsc --noEmitpass.