rpc: submitblock logs.
This commit is contained in:
parent
559cc3592d
commit
6d1eb9fd36
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user