go-ethereum/triedb
Austin Larson 9b97d60230
feat: triedb.Database.Update options via statedb.Commit (#190)
## Why this should be merged

To allow more thorough handling of duplicate state roots (or any other
info other users would like), additional information can be provided to
a call of `statedb.Commit`. This change allows arbitrary types to be
sent to `triedb` as well as the `SnapshotTree`. However, this is a
breaking change for those using the functionality already, since the
snapshot commit option is wrapped with another call.

## How this works

See the edited libevm test for usage.

## How this was tested

Edited test case to include `TrieDBUpdateOption` and ensures the payload
is sent.
2025-06-18 17:54:37 +00:00
..
database [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
hashdb feat: triedb.Database.Update options via statedb.Commit (#190) 2025-06-18 17:54:37 +00:00
pathdb feat: triedb.Database.Update options via statedb.Commit (#190) 2025-06-18 17:54:37 +00:00
database.go feat: triedb.Database.Update options via statedb.Commit (#190) 2025-06-18 17:54:37 +00:00
database.libevm.go feat(triedb): expose backend for custom use (#183) 2025-05-30 14:29:56 -04:00
database.libevm_test.go chore!(triedb): remove config argument for DBConstructor (#167) 2025-03-25 11:22:59 +01:00
preimages.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00