bsc/p2p/enode
Marius van der Wijden 8dbf261fd9
p2p, p2p/enode: fix data races (#23434)
In p2p/dial.go, conn.flags was accessed without using sync/atomic.
This race is fixed by removing the access.

In p2p/enode/iter_test.go, a similar race is resolved by writing the field atomically.

Co-authored-by: Felix Lange <fjl@twurst.com>
2021-08-24 12:22:56 +02:00
..
idscheme_test.go all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
idscheme.go vendor, crypto, swarm: switch over to upstream sha3 package 2019-01-04 09:26:07 +02:00
iter_test.go p2p, p2p/enode: fix data races (#23434) 2021-08-24 12:22:56 +02:00
iter.go p2p/enode: remove data race in sliceIter (#20421) 2019-12-05 22:16:35 +01:00
localnode_test.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
localnode.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
node_test.go p2p/enode: improve IPv6 support, add ENR text representation (#19663) 2019-06-07 15:31:00 +02:00
node.go p2p/enode: fix method doc (#23115) 2021-06-28 10:48:17 +03:00
nodedb_test.go p2p/discover: add initial discovery v5 implementation (#20750) 2020-04-08 09:57:23 +02:00
nodedb.go p2p/enode: avoid crashing for invalid IP (#21981) 2020-12-09 20:21:31 +01:00
urlv4_test.go p2p/enode: mock DNS resolver in URL parsing test (#20252) 2019-11-07 16:40:37 +01:00
urlv4.go p2p/enode: update code comment (#20972) 2020-04-24 16:50:03 +02:00