Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Fail early on StateDB functions #410

Closed
@fedekunze

Description

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, both GetCodeHash and GetNonce require the account to exist before returning the value.

Solution:

Introduce a stateErr error field on the Keeper and return early on every StateDB method if there is a previous error registered.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions