Open
Description
While debugging some stuff with @acolytec3 we ran into some issues:
- It is not possible to run a specific test "number" in a state test file. State tests have data/gas/value fields in case there are multiple tests. You could try to guess that if the 5th test fails you use
--data=4
as option (to run the test with data item 4 - data items are zero indexed). But this does not work if the gas/value changes or if the data fields are not ordered. - The
--debug
option in blockchain is only handy if you have a failing test. If a test fails, that means that while running the block, there is an error and the entire state will be reverted. Only after running the block, weverifyPostConditions
which is interesting while debugging. However, this is never ran, because running the block threw due to (usually) failing state tries and thus the state is reverted. If the--debug
option is done, run the blocks with the--generate
option and thenverifyPostConditions
, and finally check if the state root is the actually reported root.