From a70388284db627700371fdcf96b27768feacf95c Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 7 Apr 2017 17:21:04 +0200 Subject: [PATCH] disable unnecessary messages --- www/common/rpc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/rpc.js b/www/common/rpc.js index 77566d2cb..b69a5ce5a 100644 --- a/www/common/rpc.js +++ b/www/common/rpc.js @@ -53,7 +53,8 @@ types of messages: var pending = ctx.pending[txid]; if (!(parsed && parsed.slice)) { - return void console.error('MALFORMED_RPC_RESPONSE'); + // RPC responses are arrays. this message isn't meant for us. + return; } var response = parsed.slice(2); @@ -70,9 +71,8 @@ types of messages: } } pending(void 0, response); - } else { - console.log("No callback provided"); } + //else { console.log("No callback provided"); } }; var create = function (network, edPrivateKey, edPublicKey, cb) {