write to db if coins are not offered anymore

This commit is contained in:
Florian Dold 2016-11-19 21:31:36 +01:00
parent 4f7a130ebc
commit 65bbbf53ee
2 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,7 @@ class DenominationList extends ImplicitStateComponent<DenominationListProps> {
return ( return (
<div className="tree-item"> <div className="tree-item">
<ul> <ul>
<li>Offered: {d.isOffered ? "yes" : "no"}</li>
<li>Value: {prettyAmount(d.value)}</li> <li>Value: {prettyAmount(d.value)}</li>
<li>Withdraw fee: {prettyAmount(d.feeWithdraw)}</li> <li>Withdraw fee: {prettyAmount(d.feeWithdraw)}</li>
<li>Refresh fee: {prettyAmount(d.feeRefresh)}</li> <li>Refresh fee: {prettyAmount(d.feeRefresh)}</li>

View File

@ -1261,6 +1261,8 @@ export class Wallet {
await this.q() await this.q()
.putAll(Stores.denominations, .putAll(Stores.denominations,
Object.keys(newDenoms).map((d) => newDenoms[d])) Object.keys(newDenoms).map((d) => newDenoms[d]))
.putAll(Stores.denominations,
Object.keys(existingDenoms).map((d) => existingDenoms[d]))
.finish(); .finish();
return exchangeInfo; return exchangeInfo;
} }