diff options
author | Florian Dold <florian@dold.me> | 2022-01-13 22:01:14 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-01-13 22:01:14 +0100 |
commit | 17c3ced6488eb14a01b39f1ad724fcfcd5d0c4e7 (patch) | |
tree | 66c0bc42d33f93cc185a0fd16648fa54c6cf003f /packages/taler-wallet-core/src/operations/withdraw.ts | |
parent | cd2473e1ade13ca43d8f6fafaa2e8d3c3675bfd8 (diff) | |
download | wallet-core-17c3ced6488eb14a01b39f1ad724fcfcd5d0c4e7.tar.gz wallet-core-17c3ced6488eb14a01b39f1ad724fcfcd5d0c4e7.tar.bz2 wallet-core-17c3ced6488eb14a01b39f1ad724fcfcd5d0c4e7.zip |
make more use of the denom cache
Diffstat (limited to 'packages/taler-wallet-core/src/operations/withdraw.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/withdraw.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts index f9eeb02c0..79220089b 100644 --- a/packages/taler-wallet-core/src/operations/withdraw.ts +++ b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -453,6 +453,9 @@ async function processPlanchetExchangeRequest( withdrawalGroup: WithdrawalGroupRecord, coinIdx: number, ): Promise<WithdrawResponse | undefined> { + logger.info( + `processing planchet exchange request ${withdrawalGroup.withdrawalGroupId}/${coinIdx}`, + ); const d = await ws.db .mktx((x) => ({ withdrawalGroups: x.withdrawalGroups, @@ -478,10 +481,12 @@ async function processPlanchetExchangeRequest( return; } - const denom = await tx.denominations.get([ + const denom = await ws.getDenomInfo( + ws, + tx, withdrawalGroup.exchangeBaseUrl, planchet.denomPubHash, - ]); + ); if (!denom) { logger.error("db inconsistent: denom for planchet not found"); |