migrate: sort wallet ids.

This commit is contained in:
Christopher Jeffrey 2016-10-04 13:44:19 -07:00
parent 6344eebc2d
commit 5c3ed7dfb8
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -94,7 +94,7 @@ var updatePathMap = co(function* updatePathMap() {
batch.put(layout.P(key, hash), path.toRaw());
}
batch.put(layout.p(hash), serializeWallets(keys));
batch.put(layout.p(hash), serializeWallets(keys.sort()));
}
console.log('Migrated %d paths.', total);