mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
SideChain: fixed alternative chain detection
This commit is contained in:
parent
8f1f81749d
commit
1cf13e142a
1 changed files with 2 additions and 0 deletions
|
@ -1522,6 +1522,8 @@ bool SideChain::is_longer_chain(const PoolBlock* block, const PoolBlock* candida
|
|||
}
|
||||
|
||||
if (!block) {
|
||||
// Switching from an empty to a non-empty chain
|
||||
is_alternative = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue