From 5c3ed7dfb880e66af4d7fd36514c26a73752cba7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 4 Oct 2016 13:44:19 -0700 Subject: [PATCH] migrate: sort wallet ids. --- migrate/walletdb2to3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrate/walletdb2to3.js b/migrate/walletdb2to3.js index fe60a8b8..9682def9 100644 --- a/migrate/walletdb2to3.js +++ b/migrate/walletdb2to3.js @@ -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);