This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
Fail early on StateDB
functions
#410
Labels
StateDB
functions
#410
Most of the functions from
statedb.go
perform a no-operation (no-op) when an error is encountered. The problem is, that these functions don't have any context of whether previous calls failed or not. For example, bothGetCodeHash
andGetNonce
require the account to exist before returning the value.Solution:
Introduce a
stateErr error
field on theKeeper
and return early on everyStateDB
method if there is a previous error registered.The text was updated successfully, but these errors were encountered: