canonicalize account info JSON when collecting them

This commit is contained in:
Florian Dold 2017-08-27 04:35:24 +02:00
parent 665e88c72b
commit ccc6d82242
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -2413,7 +2413,7 @@ export class Wallet {
const senderWiresSet = new Set();
await this.q().iter(Stores.reserves).map((x) => {
if (x.senderWire) {
senderWiresSet.add(JSON.stringify(x.senderWire));
senderWiresSet.add(canonicalJson(x.senderWire));
}
}).run();
const senderWires = Array.from(senderWiresSet).map((x) => JSON.parse(x));