Open rjan90 opened 6 months ago
Logging from the builtin actors means executing messages a second time with logging enabled (ignoring gas limits, I guess?). IMO, we should add some API endpoints like ComputeStateWithLogging
, etc.
Alternatively, we can focus on making it easier to extract test vectors for messages and tipsets. E.g.:
lotus state extract-vector <message-cid | message-params | tipset>
Basically, it would be nice to be able to execute an existing message and/or a new message and/or an entire tipset and easily extract a test vector that we can play with in the fvm testbench.
From the sync discussion about this I learned about the tvx
tool in the lotus repo. It probably needs some work to bring it up to scratch, and ideally this is the kind of thing you could extract to run in fvm_workbench.
Summary: Currently, built-in actor debug logs are not visible by default in the Lotus logs, and there is no straightforward method to enable them through the standard Lotus logging commands. The only workaround is to set the environment variable
LOTUS_FVM_DEVELOPER_DEBUG
to1
.We should look at integrating the built-in actor logs into the regular Lotus logging system for a more streamlined debugging experience.
Acceptance Criteria: