From f85af7ef4c336c9d718adc74996ea35fb4b6651f Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 4 Jul 2017 10:19:18 +0200 Subject: [PATCH] hide useless messages --- www/common/rpc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/www/common/rpc.js b/www/common/rpc.js index 059c5e1e9..0ce061dcf 100644 --- a/www/common/rpc.js +++ b/www/common/rpc.js @@ -99,7 +99,10 @@ types of messages: delete ctx.pending[txid]; return; } - if (parsed.length !== 2) { + + // HACK to hide messages from the anon rpc + if (parsed.length !== 4) { + console.log(parsed); console.error("received message [%s] for txid[%s] with no callback", msg, txid); } };