diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index f967d523..96d4d0ae 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -1227,10 +1227,9 @@ WalletDB.prototype.getPath = co(function* getPath(wid, hash) { * @returns {Promise} */ -WalletDB.prototype.hasPath = co(function* hasPath(wid, hash) { - var data = yield this.db.get(layout.P(wid, hash)); - return data != null; -}); +WalletDB.prototype.hasPath = function hasPath(wid, hash) { + return this.db.has(layout.P(wid, hash)); +}; /** * Get all address hashes.