walletdb accounts.

This commit is contained in:
Christopher Jeffrey 2016-07-06 12:59:44 -07:00
parent 70225dcb57
commit 80d8c2b3c8
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -620,7 +620,8 @@ WalletDB.prototype.getAccounts = function getAccounts(id, callback) {
parse: function(value, key) {
var name = key.split('/')[2];
var index = value.readUInt32LE(0, true);
accounts[index] = name;
assert(index === accounts.length);
accounts.push(name);
}
}, function(err) {
if (err)