From 6d1eb9fd3650adc00bc0dea75a469c0fb3a799e3 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 15 Dec 2016 15:38:27 -0800 Subject: [PATCH] rpc: submitblock logs. --- lib/http/rpc.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/http/rpc.js b/lib/http/rpc.js index 7411e1df..17592306 100644 --- a/lib/http/rpc.js +++ b/lib/http/rpc.js @@ -1451,8 +1451,9 @@ RPC.prototype._submitblock = co(function* submitblock(block) { }); RPC.prototype.__submitblock = co(function* submitblock(block) { - if (block.prevBlock !== this.chain.tip.hash) - return 'rejected: inconclusive-not-best-prevblk'; + this.logger.info('Handling submitted block: %s.', block.rhash()); + this.logger.debug('Coinbase:'); + this.logger.debug(block.txs[0]); try { yield this.chain.add(block);