Aleksandr Bezobchuk
b3aae970d8
## Description Fixes the data race in usage of `WaitGroup`. Specifically, the case where we invoke `Wait` _before_ the first delta `Add` call when the current waitgroup counter is zero. See https://golang.org/pkg/sync/#WaitGroup.Add. Still not sure how this manifests itself in a test since the reactor has to be stopped virtually immediately after being started (I think?). Regardless, this is the appropriate fix. closes: #5968 |
4 years ago | |
---|---|---|
.. | ||
pool.go | blockchain v0: p2p refactor (#5858) | 4 years ago |
pool_test.go | p2p: rename ID to NodeID | 4 years ago |
reactor.go | blockchain v0: fix waitgroup data race (#5970) | 4 years ago |
reactor_test.go | blockchain v0: p2p refactor (#5858) | 4 years ago |
test_util.go | blockchain v0: p2p refactor (#5858) | 4 years ago |