walletdb: minor.
This commit is contained in:
parent
c0fd199f2d
commit
eef9bcd872
@ -1227,10 +1227,9 @@ WalletDB.prototype.getPath = co(function* getPath(wid, hash) {
|
|||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
WalletDB.prototype.hasPath = co(function* hasPath(wid, hash) {
|
WalletDB.prototype.hasPath = function hasPath(wid, hash) {
|
||||||
var data = yield this.db.get(layout.P(wid, hash));
|
return this.db.has(layout.P(wid, hash));
|
||||||
return data != null;
|
};
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all address hashes.
|
* Get all address hashes.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user