This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
try-runtime-cli: nudge users to use snapshots #14278
Labels
T1-runtime
This PR/Issue is related to the topic “runtime”.
Z1-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder
Z6-mentor
An easy task where a mentor is available. Please indicate in the issue who the mentor could be.
Related #13975
The 'straight forward' way of getting commands like
execute-block
,on-runtime-upgrade
, etc to work is usinglive ws://host-uri
. However, it can be quite slow.If a developer wants to run these commands repeatedly, it's much more efficient to run
create-snapshot
once to create a snapshot, and thereafter use the snapshot instead of fetching the live state each time. Snapshots load most of the time <1s.Developers are sometimes not aware of the benefit of snapshots, I suggest nudge them with some logs when they use
live
. Something very roughly along the lines of:_Originally posted by @liamaharon in paritytech/polkadot-sdk#174
The text was updated successfully, but these errors were encountered: