From c454ef0655c96f80a89927572619637fd704f121 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Mon, 28 Nov 2022 13:38:53 +0900 Subject: [PATCH] limit first-seen times to TRANSACTION_INDEXING=true --- backend/src/api/websocket-handler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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