Closed chfast closed 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.24%. Comparing base (
66216f9
) to head (93f1c45
). Report is 2 commits behind head on master.
LGTM, can we fix one thing up when we're at it, it caught me off guard a bit when revieweing:
blockchaintest_runner.cpp
seems to be the only one to not qualifytest::transition
withtest::
, so at first I thoughtstate::transition
was meant there and something was not right.Can you add the
test::
there?
Rather not now, because this file is not modified here and there are multiple cases like this. Tests should use evmone::test
and rarely but explicitly state::
.
This change separates transaction validation in
state::validate_transaction()
fromstate::transition()
which previously was also validating the transaction.Readability goes up in cost of slightly lower efficiency. The change is also good for API because transaction validation usually happens in different place than execution.