Skip to content

uint256: switch over the statedb package from big.Int to uint256.Int #28578

Closed
@karalabe

Description

We've built the uint256 library a long time ago, but never really got around to using it outside of the EVM. This is a shame, as the library is more performant than big.Int as well as more "correct", as in we don't need to special case overflows and negative numbers.

Whilst it might be non-trivial to switch certain parts of Geth over while keeping backwards compatibility, one place that might be less gnarly is the statedb internals. We kind of expect that some things might leak out, but statedb is not really something many people use API wise and it might help to do some cleanups there.

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions