keyring: minor.

This commit is contained in:
Christopher Jeffrey 2017-08-09 15:25:46 -07:00
parent edebc51d18
commit ff8b0418b1
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -581,8 +581,8 @@ KeyRing.prototype.getKeyHash = function getKeyHash(enc) {
KeyRing.prototype.getKeyAddress = function getKeyAddress(enc) {
if (!this._keyAddress) {
const hash = this.getKeyHash();
let addr;
let addr;
if (this.witness)
addr = Address.fromWitnessPubkeyhash(hash, this.network);
else