diff --git a/backend/src/api/websocket-handler.ts b/backend/src/api/websocket-handler.ts index 0e5adacb6..c2897f38b 100644 --- a/backend/src/api/websocket-handler.ts +++ b/backend/src/api/websocket-handler.ts @@ -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