mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-08-20 13:38:47 -06:00
Faster block verification
This commit is contained in:
parent
b6c1b1a6d7
commit
6c45573976
@ -1532,7 +1532,11 @@ void SideChain::verify(PoolBlock* block)
|
|||||||
}
|
}
|
||||||
|
|
||||||
difficulty_type diff;
|
difficulty_type diff;
|
||||||
if (!get_difficulty(parent, m_difficultyData, diff)) {
|
if (parent == m_chainTip) {
|
||||||
|
LOGINFO(6, "block " << block->m_sidechainId << " is built on top of the current chain tip, using current difficulty for verification");
|
||||||
|
diff = difficulty();
|
||||||
|
}
|
||||||
|
else if (!get_difficulty(parent, m_difficultyData, diff)) {
|
||||||
block->m_invalid = true;
|
block->m_invalid = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user