pool: minor.

This commit is contained in:
Christopher Jeffrey 2017-01-17 08:15:41 -08:00
parent e738a80988
commit cdad00944c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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