miner: move logs.
This commit is contained in:
parent
0120e67203
commit
369ef75840
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user