diff --git a/lib/net/pool.js b/lib/net/pool.js index c6155fcc..040a9426 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -228,8 +228,8 @@ Pool.prototype._open = co(function* _open() { this.logger.info('Pool loaded (maxpeers=%d).', this.options.maxOutbound); - if (this.identityKey) { - key = ec.publicKeyCreate(this.identityKey, true); + if (this.options.bip150) { + key = ec.publicKeyCreate(this.options.identityKey, true); this.logger.info('Identity public key: %s.', key.toString('hex')); this.logger.info('Identity address: %s.', BIP150.address(key)); }