Previously, peerListeningShards in ShardManager is a map and may be accessed through different goroutines, which is dangerous. It should be fixed by https://github.com/ethresearch/sharding-p2p-poc/pull/54. We should further check if there is any this kind of issue existing in our code.
How can it be fixed?
Go through the code and see if there are similar issues.
What is wrong?
Previously,
peerListeningShards
inShardManager
is amap
and may be accessed through different goroutines, which is dangerous. It should be fixed by https://github.com/ethresearch/sharding-p2p-poc/pull/54. We should further check if there is any this kind of issue existing in our code.How can it be fixed?
Go through the code and see if there are similar issues.