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
..
discover
all: fix 'the the' in comments ( #24036 )
3 years ago
dnsdisc
p2p/dnsdisc: fix crash when iterator closed before first call to Next ( #22906 )
4 years ago
enode
all: use T.TempDir to create temporary test directories ( #24633 )
3 years ago
enr
p2p/enr: reduce allocation in Record.encode ( #24034 )
3 years ago
msgrate
p2p/msgrate: return capacity as integer, clamp to max uint32 ( #22943 )
4 years ago
nat
p2p/nat: skip TestUPNP in non-CI environments if discover fails ( #22877 )
4 years ago
netutil
all: add go:build lines ( #23468 )
3 years ago
nodestate
les/vflux/client, p2p/nodestate: fix data races ( #24058 )
3 years ago
rlpx
p2p/rlpx: reduce allocation and syscalls ( #22899 )
4 years ago
simulations
core/types: faster RLP encoding of Header, StateAcccount, ReceiptForStorage ( #24420 )
3 years ago
tracker
p2p/tracker: only reschedule wake if previous didn't run
4 years ago
dial.go
p2p, p2p/enode: fix data races ( #23434 )
3 years ago
dial_test.go
p2p: new dial scheduler ( #20592 )
5 years ago
message.go
eth: implement eth66 ( #22241 )
4 years ago
message_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
metrics.go
eth/protocols, prp/tracker: add support for req/rep rtt tracking ( #22608 )
4 years ago
peer.go
p2p: define DiscReason as uint8 ( #24507 )
3 years ago
peer_error.go
p2p: define DiscReason as uint8 ( #24507 )
3 years ago
peer_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
protocol.go
cmd/devp2p, p2p: dial using node iterator, discovery crawler ( #20132 )
5 years ago
server.go
p2p: reduce the scope of variable dialPubkey ( #24385 )
3 years ago
server_test.go
all: fix warning flagging the use of DeepEqual on error ( #23624 )
3 years ago
transport.go
p2p/rlpx: reduce allocation and syscalls ( #22899 )
4 years ago
transport_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
util.go
p2p: new dial scheduler ( #20592 )
5 years ago
util_test.go
p2p: new dial scheduler ( #20592 )
5 years ago