go-ethereum/triedb/pathdb
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.go feat: triedb.Database.Update options via statedb.Commit (#190) 2025-06-18 17:54:37 +00:00
database_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
difflayer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
difflayer_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
disklayer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
errors.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
history.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
history_test.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
journal.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
layertree.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
metrics.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
nodebuffer.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00
testutils.go [AUTO] rename Go module + update internal import paths 2024-10-17 01:49:47 +00:00