Merge pull request #422 from mempool/simon/corerpcminfee-catcher

Catch getMempoolInfo errors gracefully to not break general main loop
This commit is contained in:
wiz
2021-04-06 16:08:20 +09:00
committed by GitHub
2 changed files with 11 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class Mempool {
private inSync: boolean = false;
private mempoolCache: { [txId: string]: TransactionExtended } = {};
private mempoolInfo: IBitcoinApi.MempoolInfo = { loaded: false, size: 0, bytes: 0, usage: 0,
maxmempool: 0, mempoolminfee: 0, minrelaytxfee: 0 };
maxmempool: 300000000, mempoolminfee: 0.00001000, minrelaytxfee: 0.00001000 };
private mempoolChangedCallback: ((newMempool: {[txId: string]: TransactionExtended; }, newTransactions: TransactionExtended[],
deletedTransactions: TransactionExtended[]) => void) | undefined;