miner: move logs.

This commit is contained in:
Christopher Jeffrey 2017-02-27 00:29:11 -08:00
parent 0120e67203
commit 369ef75840
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -309,6 +309,13 @@ Miner.prototype._createBlock = co(function* createBlock(tip, address) {
this.build(attempt);
this.logger.debug(
'Created miner block (height=%d, weight=%d, fees=%d, txs=%s).',
attempt.height,
attempt.weight,
Amount.btc(attempt.fees),
attempt.items.length + 1);
return attempt;
});
@ -471,13 +478,6 @@ Miner.prototype.build = function build(attempt) {
attempt.refresh();
this.logger.debug(
'Created miner block (height=%d, weight=%d, fees=%d, txs=%s).',
attempt.height,
attempt.weight,
Amount.btc(attempt.fees),
attempt.items.length + 1);
assert(block.getWeight() <= attempt.weight,
'Block exceeds reserved weight!');
assert(block.getBaseSize() <= consensus.MAX_BLOCK_SIZE,