From 774893f2fc32cf49a3a06948513514af431f291d Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 6 Oct 2020 13:31:33 +0700 Subject: [PATCH] Bugfix: Incoming transactions not parsed properly. --- backend/src/api/websocket-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/api/websocket-handler.ts b/backend/src/api/websocket-handler.ts index 3a2edc466..073c51756 100644 --- a/backend/src/api/websocket-handler.ts +++ b/backend/src/api/websocket-handler.ts @@ -151,7 +151,7 @@ class WebsocketHandler { if (client['want-stats']) { response['mempoolInfo'] = mempoolInfo; response['vBytesPerSecond'] = vBytesPerSecond; - response['transactions'] = newTransactions.splice(0, 6).map((tx) => Common.stripTransaction(tx)); + response['transactions'] = newTransactions.slice(0, 6).map((tx) => Common.stripTransaction(tx)); } if (client['want-mempool-blocks']) {