limit first-seen times to TRANSACTION_INDEXING=true

This commit is contained in:
Mononaut
2022-11-28 13:38:53 +09:00
parent 639294d319
commit c454ef0655

View File

@@ -463,7 +463,9 @@ class WebsocketHandler {
} }
} }
await mempool.$saveTxFirstSeenTimes(transactions, _memPool); if (config.MEMPOOL.TRANSACTION_INDEXING) {
await mempool.$saveTxFirstSeenTimes(transactions, _memPool);
}
const removed: string[] = []; const removed: string[] = [];
// Update mempool to remove transactions included in the new block // Update mempool to remove transactions included in the new block