mirror of https://github.com/SChernykh/p2pool
SideChain: fixed alternative chain detection
parent
8f1f81749d
commit
1cf13e142a
|
@ -1522,6 +1522,8 @@ bool SideChain::is_longer_chain(const PoolBlock* block, const PoolBlock* candida
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!block) {
|
if (!block) {
|
||||||
|
// Switching from an empty to a non-empty chain
|
||||||
|
is_alternative = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue