more compact block logs.
This commit is contained in:
parent
20d52ca110
commit
2b783e8f6e
@ -1841,6 +1841,8 @@ Peer.prototype._handleSendCmpct = function _handleSendCmpct(payload) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.info('Peer initialized compact blocks (%s).', this.hostname);
|
||||
|
||||
this.compactMode = payload;
|
||||
this.fire('sendcmpct', payload);
|
||||
};
|
||||
@ -2103,6 +2105,7 @@ Peer.prototype.sendReject = function sendReject(code, reason, obj) {
|
||||
|
||||
Peer.prototype.sendCompact = function sendCompact() {
|
||||
var cmpct = new bcoin.bip152.SendCompact(0, 1);
|
||||
this.logger.info('Initializing compact blocks (%s).', this.hostname);
|
||||
this.write(this.framer.sendCmpct(cmpct));
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user