go-ethereum/libevm
Arran Schlosberg 02110d3f34
chore: logging (#151)
## Why this should be merged

Adds logging of `libevm` modification of default behaviour.

## How this works

1. Introduces `log.Lazy` functions to allow expensive logging operations
to be computed i.f.f. required by the logging level.
2. Adds `Info` logging for registration of types and `Debug` logging for
all else.
3. Only paths that change behaviour in a potentially unpredictable
manner are logged; of note, RLP / JSON encoding is _not_ considered
unpredictable given that registered extras are logged.
4. The minimal viable package, `set`, was necessary because we don't
want to depend on `avalanchego` and the `hashicorp/go-set` latest
version requires a later version of Go. #153 tracks a swap to the latter
when possible.

The `eth/tracers/internal/tracetest` test flaked at least twice
(unrelated to these changes) so I've marked it as such since it's not
worth a separate PR.

## How this was tested

New unit test on `log.Lazy` + `set` methods. Existing CI for the rest as
it's a refactor.
2025-02-24 16:53:21 +00:00
..
cmd/internalise feat: internalise command (#90) 2024-12-17 17:20:02 +01:00
ethtest test: lock in types.Header RLP encoding (#87) 2024-12-12 13:00:02 +00:00
hookstest Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
legacy fix(libevm/legacy): PrecompiledStatefulContract gas and remaining gas handling (#114) 2025-02-07 14:29:33 +01:00
options refactor: abstract options package (#74) 2024-11-21 13:59:51 -08:00
pseudo refactor!: consolidate params and types payload access (#84) 2024-12-09 18:32:15 +00:00
register refactor: consolidate once-only registration of extras (#85) 2024-12-09 17:43:59 +00:00
set chore: logging (#151) 2025-02-24 16:53:21 +00:00
stateconf feat: state.SnapshotTree interface for drop-in replacement (#77) 2024-11-26 17:22:13 +00:00
sync feat(core/state): async trie prefetching (#76) 2024-11-26 08:01:47 -08:00
testonly test: StateAccount.Extra via trie.StateTrie.{Update,Get}Account() (#45) 2024-10-02 09:45:02 -07:00
tooling chore: release branches remove memsize (#146) 2025-02-17 14:02:02 +00:00
interfaces_test.go Merge branch 'auto-rename-module_source-2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1_workflow-c1fc594f020d23958b641a4e5a856b6e52c49d3bece94b95594864db16c1b0fc-main' into arr4n/rename-module 2024-10-17 13:07:28 +11:00
libevm.go chore: post-rename cleanup + libevm intro (#68) 2024-10-30 09:51:41 -04:00