commit 65bbbf53ee73f7b72c1531d03d3943eb82b78e99
parent 4f7a130ebc2da6767e9db161ddf04b243dc2d0e3
Author: Florian Dold <florian.dold@gmail.com>
Date: Sat, 19 Nov 2016 21:31:36 +0100
write to db if coins are not offered anymore
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/pages/tree.tsx b/src/pages/tree.tsx
@@ -288,6 +288,7 @@ class DenominationList extends ImplicitStateComponent<DenominationListProps> {
return (
<div className="tree-item">
<ul>
+ <li>Offered: {d.isOffered ? "yes" : "no"}</li>
<li>Value: {prettyAmount(d.value)}</li>
<li>Withdraw fee: {prettyAmount(d.feeWithdraw)}</li>
<li>Refresh fee: {prettyAmount(d.feeRefresh)}</li>
diff --git a/src/wallet.ts b/src/wallet.ts
@@ -1261,6 +1261,8 @@ export class Wallet {
await this.q()
.putAll(Stores.denominations,
Object.keys(newDenoms).map((d) => newDenoms[d]))
+ .putAll(Stores.denominations,
+ Object.keys(existingDenoms).map((d) => existingDenoms[d]))
.finish();
return exchangeInfo;
}