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) {
|
RPC.prototype.__submitblock = co(function* submitblock(block) {
|
||||||
if (block.prevBlock !== this.chain.tip.hash)
|
this.logger.info('Handling submitted block: %s.', block.rhash());
|
||||||
return 'rejected: inconclusive-not-best-prevblk';
|
this.logger.debug('Coinbase:');
|
||||||
|
this.logger.debug(block.txs[0]);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
yield this.chain.add(block);
|
yield this.chain.add(block);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user