Merge branch 'master' into fix/difficulty-calc

This commit is contained in:
mononaut authored and GitHub committed 2023-08-02 11:00:32 +09:00
commit b365ad3ba4
4 files changed
+26 -23

No files matched your search

+1
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;