fix partially indexed difficulty bug

This commit is contained in:
Mononaut 2023-08-01 18:41:48 +09:00
parent 22e57ae95c
commit ab784cede2
No known key found for this signature in database
GPG key ID: A3F058E41374C04E

View file

@ -438,6 +438,7 @@ class Mining {
const oldestConsecutiveBlock = await BlocksRepository.$getOldestConsecutiveBlock();
if (config.MEMPOOL.INDEXING_BLOCKS_AMOUNT !== -1) {
currentBits = oldestConsecutiveBlock.bits;
currentDifficulty = oldestConsecutiveBlock.difficulty;
}
let totalBlockChecked = 0;