peer: compact block logs.
This commit is contained in:
parent
c9e8f779f3
commit
b860894471
@ -1876,11 +1876,18 @@ Peer.prototype._handleCmpctBlock = function _handleCmpctBlock(block) {
|
||||
if (result) {
|
||||
delete self.compactBlocks[hash];
|
||||
self.emit('block', block.toBlock());
|
||||
self.logger.debug(
|
||||
'Received full compact block %s (%s).',
|
||||
block.rhash, self.hostname);
|
||||
return;
|
||||
}
|
||||
|
||||
self.write(self.framer.getBlockTxn(block.toRequest()));
|
||||
|
||||
self.logger.debug(
|
||||
'Received semi-full compact block %s (%s).',
|
||||
block.rhash, self.hostname);
|
||||
|
||||
block.startTimeout(10000, function() {
|
||||
self.logger.debug(
|
||||
'Compact block timed out: %s (%s).',
|
||||
@ -1969,6 +1976,10 @@ Peer.prototype._handleBlockTxn = function _handleBlockTxn(payload) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.debug(
|
||||
'Filled compact block %s (%s).',
|
||||
block.rhash, this.hostname);
|
||||
|
||||
this.emit('block', block.toBlock());
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user