walletdb: less load for browser.

This commit is contained in:
Christopher Jeffrey 2016-12-18 23:06:44 -08:00
parent 1df11caf71
commit 9d8f95ee0f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -601,7 +601,8 @@ WalletDB.prototype.getDepth = co(function* getDepth() {
iter = this.db.iterator({
gte: layout.w(0x00000000),
lte: layout.w(0xffffffff),
reverse: true
reverse: true,
limit: 1
});
item = yield iter.next();