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
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

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