Closed siladu closed 1 year ago
The hive tests don't cover the overflow case.
We handle the account balance overflow by catching the ArtithmeticException in the AbstractBlockProcessor. This change was made in https://github.com/hyperledger/besu/commit/6b9c1ce40d1b575c1ffb823d4468e3e493b64d99 so that the executionSpec tests could be run and we would handle this case.
Clarified the test case further for execution spec tests when there could be multiple withdrawals and one of the withdrawals overflows. In this case, we consider the block invalid so all changes should be rolled back.
The current implementation throws an exception in this case so we will roll back and return an error.
From @shemnon :
Is this covered by hive tests?
cc @jframe