chopsticks icon indicating copy to clipboard operation
chopsticks copied to clipboard

Feature request: isolating extrinsic dryrun changes from block hook changes

Open sander2 opened this issue 2 years ago • 3 comments

Currently, the output of the dry-run command is pretty noisy, since it includes changes caused be on_initialize and on_finalize hooks. It would be super helpful if there would be a way to only display the changes caused by the execution of the extrinsic itself. I'm not sure if this is feasible to implement. Maybe an approximation could be made by forking the chain and mining two blocks on different forks, and then comparing the result of both

sander2 avatar May 10 '23 11:05 sander2

try passing option --html --open

ermalkaleci avatar May 10 '23 12:05 ermalkaleci

Yea I was using that. It just has a lot of noise. For dev work that is not a problem. However, we're starting to use dry-run to demonstrate the effects of democracy proposals to other people, and then it helps a lot if the changes are as concise as possible, without irrelevant storage changes caused by block hooks

sander2 avatar May 10 '23 12:05 sander2

Yeah we can exclude results from hooks. Just need some refactoring.

xlc avatar May 10 '23 22:05 xlc