This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
State tracing in runtime #6572
Labels
A5-stale
Pull request did not receive any updates in a long time. No review needed at this stage. Close it.
Comments
Isn't this issue basically this: #6401 + |
And how should non |
Maybe we could just support a node only changes trie? |
Sounds like #4939? RPC state_queryStorage is already able to fetch all the changes of a particular storage key and all the blocks causing the changes. |
@gnunicorn @dvdplm Can we close this? |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
A5-stale
Pull request did not receive any updates in a long time. No review needed at this stage. Close it.
Especially for balance transfers exchanges are asking us to provide not only the wasm blob and the final state but what is called "state traces", effectively the specific low level functions that are being executed by a specific transaction and the state changes those finally lead to. In past implementations we just added logging facilities to the specific function calls and be done with it but with the separation of concerns in substrate between client and runtime this is a bit more tricky for us.
Following #6916, we need to add
event_debug!
-traces with the to-be-hashed-key and its value prior to anyunhashed
-call that changes state – maybe also addevent_trace!
to the inner ofunhashed
as well as to all non-mutating-unhashed-calls to allow for debugging. Combined with thespan
-tree we should be able to identify which extrinsic lead to which changes.The text was updated successfully, but these errors were encountered: