more compact block logs.

This commit is contained in:
Christopher Jeffrey 2016-07-25 01:26:01 -07:00
parent 20d52ca110
commit 2b783e8f6e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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));
};