mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-22 19:39:22 +00:00
Faster block verification
This commit is contained in:
parent
b6c1b1a6d7
commit
6c45573976
1 changed files with 5 additions and 1 deletions
|
@ -1532,7 +1532,11 @@ void SideChain::verify(PoolBlock* block)
|
|||
}
|
||||
|
||||
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;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue