go-ethereum/core/state/snapshot
Martin Holst Swende a907d7e81a
all: more linters (#24783)
This enables the following linters

- typecheck
- unused
- staticcheck
- bidichk
- durationcheck
- exportloopref
- gosec

WIth a few exceptions.

- We use a deprecated protobuf in trezor. I didn't want to mess with that, since I cannot meaningfully test any changes there.
- The deprecated TypeMux is used in a few places still, so the warning for it is silenced for now.
- Using string type in context.WithValue is apparently wrong, one should use a custom type, to prevent collisions between different places in the hierarchy of callers. That should be fixed at some point, but may require some attention.
- The warnings for using weak random generator are squashed, since we use a lot of random without need for cryptographic guarantees.
2022-06-13 16:24:45 +02:00
..
account.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
context.go core/state/snapshot: detect and clean up dangling storage snapshot in generation (#24811) 2022-05-23 13:26:22 +03:00
conversion.go all: introduce trie owner notion (#24750) 2022-06-06 17:14:55 +02:00
difflayer.go core/state/snapshot: fix race condition (#24685) 2022-05-06 17:20:41 +02:00
difflayer_test.go core/state/snapshot: fix benchmarks (#23804) 2021-10-26 11:01:01 +02:00
disklayer.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
disklayer_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
generate.go all: introduce trie owner notion (#24750) 2022-06-06 17:14:55 +02:00
generate_test.go all: introduce trie owner notion (#24750) 2022-06-06 17:14:55 +02:00
holdable_iterator.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
holdable_iterator_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
iterator.go core: fix typo in iterator.go (#23502) 2021-08-31 10:21:42 +02:00
iterator_binary.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
iterator_fast.go snapshot, trie: fixed typos, mostly in snapshot pkg (#22133) 2021-01-07 08:36:21 +02:00
iterator_test.go core/state/snapshot: implement storage iterator (#20971) 2020-04-29 12:53:08 +03:00
journal.go all: more linters (#24783) 2022-06-13 16:24:45 +02:00
metrics.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
snapshot.go core/rawdb: add specified key length iterator (#24535) 2022-03-15 10:28:26 +02:00
snapshot_test.go all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
sort.go core: fix broken tests due to API changes + linter 2020-02-25 12:51:16 +02:00
utils.go cmd/geth, core/state/snapshot: rework journal loading, implement account-check (#24765) 2022-06-06 17:09:39 +02:00