This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Call runtime API on top of any specified state #11095
liuchengxu
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
That is something that would be needed by Cumulus as well: https://github.com/paritytech/cumulus/issues/874 So, I think it can be integrated into Substrate :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the runtime API is limited to be called on top of a certain block, while in Subspace we have to call some APIs against an intermediate state between the entire block execution, for example, call
BlockBuilder_finalize_block
after all the extrinsics have been applied and before executing thefinalize_block
hook. It's less robust having to work with the String API likeBlockBuilder_finalize_block
even it's kind of stable, I'm wondering whether there is a way to call the runtime API against any specific state, seemingly doable to do something aroundcontextual_call
substrate/client/service/src/client/call_executor.rs
Line 186 in 6506784
Not sure if you think it's a generally useful feature and could be included into Substrate, and any suggestions on implementing this feature outside Substrate would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions