mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Increasing clear protection period to 10 minutes.
This commit is contained in:
parent
86902d6f33
commit
cca95bbd66
@ -10,6 +10,7 @@ import loadingIndicators from './loading-indicators';
|
||||
|
||||
class Mempool {
|
||||
private static WEBSOCKET_REFRESH_RATE_MS = 10000;
|
||||
private static CLEAR_PROTECTION_MINUTES = 10;
|
||||
private inSync: boolean = false;
|
||||
private mempoolCache: { [txId: string]: TransactionExtended } = {};
|
||||
private mempoolInfo: IBitcoinApi.MempoolInfo = { loaded: false, size: 0, bytes: 0, usage: 0,
|
||||
@ -143,7 +144,7 @@ class Mempool {
|
||||
setTimeout(() => {
|
||||
this.mempoolProtection = 2;
|
||||
logger.warn('Mempool clear protection resumed.');
|
||||
}, 1000 * 60 * 2);
|
||||
}, 1000 * 60 * Mempool.CLEAR_PROTECTION_MINUTES);
|
||||
}
|
||||
|
||||
let newMempool = {};
|
||||
|
Loading…
Reference in New Issue
Block a user