The idea is to have a kind of script (like for a migration) that we could run against chain and check the current state of the storage to see if everything is as expected (ex: compatibility between values in different storage maps for a specific pallet).
Because, as chain is getting more and more complex, it could be useful to have this kind of quick check available to be able to identify unexpected cases (ex: #632 ).
Something like a live chain checking.
A first guess on how to do it would be taking advantage of the try-runtime tool in a context which is not a migration, just a checking
https://docs.substrate.io/test/check-runtime/
The idea is to have a kind of script (like for a migration) that we could run against chain and check the current state of the storage to see if everything is as expected (ex: compatibility between values in different storage maps for a specific pallet).
Because, as chain is getting more and more complex, it could be useful to have this kind of quick check available to be able to identify unexpected cases (ex: #632 ).
Something like a live chain checking.
A first guess on how to do it would be taking advantage of the
try-runtimetool in a context which is not a migration, just a checkinghttps://docs.substrate.io/test/check-runtime/