mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
SideChain: fixed data race
This commit is contained in:
parent
98a9eb4f18
commit
98b2d2057c
1 changed files with 2 additions and 0 deletions
|
@ -1123,6 +1123,8 @@ uint64_t SideChain::bottom_height(const PoolBlock* tip) const
|
|||
uint64_t bottom_height;
|
||||
std::vector<MinerShare> shares;
|
||||
|
||||
ReadLock lock(m_sidechainLock);
|
||||
|
||||
if (!get_shares(tip, shares, &bottom_height, true)) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue