From 2b783e8f6eb2e15f64650aaf4fb2ceb898a37767 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 25 Jul 2016 01:26:01 -0700 Subject: [PATCH] more compact block logs. --- lib/bcoin/peer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index 791c83df..49c2615e 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -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)); };