-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Introduce new Runtime API endpoint for fetching the validation data #3728
Conversation
`persisted_validation_data_with_code_hash` that will be used by the candidate validation subsystem in order to decrease amount of runtime API requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the things we would still need to do is to update the implementer's guide.
Yea, it will also be necessary to update the subsystem diagram, but first I want to finalize the PR, e.g. there're naming issues, as you mentioned. |
We should probably also bump the version of the runtime api? And add some fallback for when it is not available? |
The code that depends on this PR, #3655, is actually a low-priority one. We can as well delay the dependent PR until after this gets on the relay-chain. This way we will save us some effort by not introducing a fallback. Do you think it is sensible? |
Okay, sounds fine. |
eea80d2
to
813b8cc
Compare
bot merge |
* master: (73 commits) Fix XCM Teleport Benchmark (#4146) Allow Queries and Subscriptions (#4150) Fix weights on hard-coded XCM fragments (#4144) Bump spec versions (#4142) Bump libc from 0.2.104 to 0.2.105 (#4141) Enable bags-list pallet in polkadot (#4080) Move artifacts states into memory in PVF validation host (#3907) Introduce new Runtime API endpoint for fetching the validation data (#3728) export xcm_pallet config (#4116) Apply cargo fmt (#4122) remove logging from the check-dependent-* job (#4120) Remove stale migrations (#4107) Bump structopt from 0.3.23 to 0.3.25 (#4098) remove hardcoded pipeline scripts tag (#4109) Bump libc from 0.2.103 to 0.2.104 (#4099) some spelling fixes (#4088) polkadot: remove call filters on registrar pallets (#4093) Fix typos in docs (#4092) Rename Statemint where appropriate (#4087) bump substrate (#4091) ...
…3728) * Introduce new Runtime API endpoint `persisted_validation_data_with_code_hash` that will be used by the candidate validation subsystem in order to decrease amount of runtime API requests. * Node-side part of new runtime API request * Define code hash getter via macro * Rename new endpoint to `assumed_validation_data` * Docs for runtime API impl of new endpoint * AssumedValidationData specialized request function * fmt
The corresponding implementers guide section will be updated along with the candidate validation subsystem as a part of #3655
Resolves #3700
cumulus companion: paritytech/cumulus#693