From aae06c680f7d31d0a2f2a2059b57a8d7c575d3c7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 8 Sep 2020 21:03:10 +0530 Subject: DB tweaks --- packages/taler-wallet-core/src/wallet.ts | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'packages/taler-wallet-core/src/wallet.ts') diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index cd9646339..e91d74efb 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -709,36 +709,6 @@ export class Wallet { this.ws.cryptoApi.stop(); } - async getSenderWireInfos(): Promise { - const m: { [url: string]: Set } = {}; - - await this.db.iter(Stores.exchanges).forEach((x) => { - const wi = x.wireInfo; - if (!wi) { - return; - } - const s = (m[x.baseUrl] = m[x.baseUrl] || new Set()); - Object.keys(wi.feesForType).map((k) => s.add(k)); - }); - - const exchangeWireTypes: { [url: string]: string[] } = {}; - Object.keys(m).map((e) => { - exchangeWireTypes[e] = Array.from(m[e]); - }); - - const senderWiresSet: Set = new Set(); - await this.db.iter(Stores.senderWires).forEach((x) => { - senderWiresSet.add(x.paytoUri); - }); - - const senderWires: string[] = Array.from(senderWiresSet); - - return { - exchangeWireTypes, - senderWires, - }; - } - /** * Trigger paying coins back into the user's account. */ @@ -894,7 +864,7 @@ export class Wallet { for (const c of coins) { const denom = await this.db.get(Stores.denominations, [ c.exchangeBaseUrl, - c.denomPub, + c.denomPubHash, ]); if (!denom) { console.error("no denom session found for coin"); -- cgit v1.2.3