ref-fvm
ref-fvm copied to clipboard
Expose intermediate state
At the moment, the FVM discards intermediate state and only flushes the final state-tree. However, for debugging (tracing, etc.), intermediate state can be useful.
We should provide a way to flush intermediate state. Something like:
- A flag that causes intermediate state to be flushed. If we do it this way, we'll have to be careful to only use this flag when we've replaced the blockstore with a temporary blockstore.
- A second blockstore for intermediate state (along with, possibly, a flag to actually use it).
This is no longer a pre-requiste for https://github.com/filecoin-project/lotus/issues/11635. And it is not clear if there is a big request for exposing intermediate state from our users.