Update backend/src/api/mempool.ts

Co-authored-by: mononaut <83316221+mononaut@users.noreply.github.com>
This commit is contained in:
softsimon 2023-07-02 18:10:14 +02:00 committed by GitHub
parent 59713e2132
commit a567a28c5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,10 @@ class Mempool {
logger.debug('Breaking mempool loop because the 5s time limit exceeded.');
break;
} else {
const progress = (currentMempoolSize + newTransactions.length) / transactions.length * 100;
logger.debug(`Mempool is synchronizing. Processed ${newTransactions.length}/${diff} txs (${Math.round(progress)}%)`);
loadingIndicators.setProgress('mempool', progress);
intervalTimer = Date.now()
}
}
}