mirror of
https://github.com/mempool/mempool.git
synced 2025-03-03 17:47:01 +01:00
fix partially indexed difficulty bug
This commit is contained in:
parent
22e57ae95c
commit
ab784cede2
1 changed files with 1 additions and 0 deletions
|
@ -438,6 +438,7 @@ class Mining {
|
||||||
const oldestConsecutiveBlock = await BlocksRepository.$getOldestConsecutiveBlock();
|
const oldestConsecutiveBlock = await BlocksRepository.$getOldestConsecutiveBlock();
|
||||||
if (config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== -1) {
|
if (config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== -1) {
|
||||||
currentBits = oldestConsecutiveBlock.bits;
|
currentBits = oldestConsecutiveBlock.bits;
|
||||||
|
currentDifficulty = oldestConsecutiveBlock.difficulty;
|
||||||
}
|
}
|
||||||
|
|
||||||
let totalBlockChecked = 0;
|
let totalBlockChecked = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue