diff options
author | Florian Dold <florian.dold@gmail.com> | 2015-12-20 21:38:41 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2015-12-20 21:38:41 +0100 |
commit | 4101bc0f53df0c6ed32f6710d24a1b8b26777bb9 (patch) | |
tree | 254204fd74f31015c7554b1c1d7d127e35ce5ada /extension/background/wallet.js | |
parent | 604cb2f80473c23f76afd37670a1a7249ae170a3 (diff) |
Fix embarassingly wrong constant
Diffstat (limited to 'extension/background/wallet.js')
-rw-r--r-- | extension/background/wallet.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/extension/background/wallet.js b/extension/background/wallet.js index 2c8c11f33..c4216c4de 100644 --- a/extension/background/wallet.js +++ b/extension/background/wallet.js @@ -433,6 +433,7 @@ function depleteReserve(db, reserve, mint) { workList.push(d); } if (!found) { + console.log("did not find coins for remaining ", remaining.toJson()); break; } } @@ -441,7 +442,6 @@ function depleteReserve(db, reserve, mint) { if (workList.length == 0) { return; } - console.log("doing work"); let d = workList.pop(); withdraw(db, d, reserve) .then(() => next()); @@ -578,25 +578,22 @@ function balances(db, detail, sendResponse) { if (cursor) { tx.objectStore('denoms').get(cursor.value.denomPub).onsuccess = (e2) => { let d = e2.target.result; - console.log("got denom", JSON.stringify(d)); let acc = byCurrency[d.value.currency]; if (!acc) { acc = new Amount(d.value); - console.log("initial:", JSON.stringify(acc.toJson())); byCurrency[d.value.currency] = acc.toJson(); } else { let am = new Amount(acc); am.add(new Amount(d.value)); byCurrency[d.value.currency] = am.toJson(); - console.log("then:", JSON.stringify(am.toJson())); } + console.log("counting", byCurrency[d.value.currency]); }; cursor.continue(); } else { sendResponse(byCurrency); - console.log("response", JSON.stringify(byCurrency)); } }; return true; |