Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Eng Zer Jun
8d066f1f42
all: use T.TempDir to create temporary test directories ( #24633 )
...
This commit replaces ioutil.TempDir with t.TempDir in tests. The
directory created by t.TempDir is automatically removed when the test
and all its subtests complete.
Prior to this commit, temporary directory created using ioutil.TempDir
had to be removed manually by calling os.RemoveAll, which is omitted in
some tests. The error handling boilerplate e.g.
defer func() {
if err := os.RemoveAll(dir); err != nil {
t.Fatal(err)
}
}
is also tedious, but t.TempDir handles this for us nicely.
Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
3 years ago
..
pruner
core/rawdb: add HasCode, HashTrieNode and use them where possible ( #24454 )
3 years ago
snapshot
all: use T.TempDir to create temporary test directories ( #24633 )
3 years ago
access_list.go
all: implement EIP-2929 (gas cost increases for state access opcodes) + yolo-v2 ( #21509 )
4 years ago
database.go
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
3 years ago
dump.go
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
3 years ago
iterator.go
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
3 years ago
iterator_test.go
core, eth, les, trie: add a prefix to contract code ( #21080 )
4 years ago
journal.go
core/state: fix typos in comments ( #23702 )
3 years ago
metrics.go
core, light, tests, trie: add state metrics ( #23433 )
3 years ago
state_object.go
core/state: fix read-meters + simplify code ( #24304 )
3 years ago
state_object_test.go
build: use golangci-lint ( #20295 )
5 years ago
state_test.go
cmd/geth, eth, core: snapshot dump + unify with trie dump ( #22795 )
4 years ago
statedb.go
core/statedb: always clear out access list when setting a new one
3 years ago
statedb_test.go
all: removed blockhash from statedb ( #23126 )
3 years ago
sync.go
core, eth, les, trie: remove the sync bloom, used by fast sync
3 years ago
sync_test.go
core, eth, les, trie: remove the sync bloom, used by fast sync
3 years ago
trie_prefetcher.go
core/state: avoid unnecessary alloc in trie prefetcher ( #23198 )
3 years ago
trie_prefetcher_test.go
core/state: add trie prefetcher tests ( #23216 )
3 years ago