aboutsummaryrefslogtreecommitdiffstats
path: root/node/config_test.go
diff options
context:
space:
mode:
authorJanoš Guljaš <janos@users.noreply.github.com>2019-02-26 15:17:20 +0800
committerViktor Trón <viktor.tron@gmail.com>2019-02-26 15:17:20 +0800
commit340a53a98bd760fab229ea9daa70adddf7460a78 (patch)
treebbe5390a8ccf8d60a10b4caf4a530c584520aa99 /node/config_test.go
parentbadaf43019dce961d6562b81d34de214e9e8ac0f (diff)
downloadgo-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar.gz
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar.bz2
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar.lz
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar.xz
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.tar.zst
go-tangerine-340a53a98bd760fab229ea9daa70adddf7460a78.zip
swarm/pss: fix data race on HandshakeController.symKeyIndex (#19162)
* swarm/pss: fix data race on HandshakeController.symKeyIndex The HandshakeController.symKeyIndex map was accessed concurrently. Since insufficient test coverage the race is not detected every time. However, running TestClientHandshake a 100 times seems to be enough to reproduce the race. Note: I've chosen HandshakeController.lock to protect HandshakeController.symKeyIndex as that was already protected in a few functions by that lock. Additionally: - removed unused testStore - enabled tests in handshake_test.go as they pass - removed code duplication by adding getSymKey() * swarm/pss: fix a data race on HandshakeController.keyC * swarm/pss: fix data races with on Pss.symKeyPool
Diffstat (limited to 'node/config_test.go')
0 files changed, 0 insertions, 0 deletions