limit first-seen times to TRANSACTION_INDEXING=true

This commit is contained in:
Mononaut committed 2023-01-06 10:05:54 -06:00
1 parent 639294d319
commit c454ef0655
1 file changed
+3 -1
+3 -1
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[] = [];
// Update mempool to remove transactions included in the new block