diff options
author | Florian Dold <florian@dold.me> | 2023-08-30 09:54:47 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-08-30 09:54:47 +0200 |
commit | 557213f9c4fd834fadb189799073dc64cdb00a07 (patch) | |
tree | 1a018746addc7448a9de52f100c3d33ba52c6b22 /packages/taler-wallet-core/src/util | |
parent | 1ad2f4cbe9d231f7f2324b37ae0e0cc97fbb1216 (diff) | |
download | wallet-core-557213f9c4fd834fadb189799073dc64cdb00a07.tar.gz wallet-core-557213f9c4fd834fadb189799073dc64cdb00a07.tar.bz2 wallet-core-557213f9c4fd834fadb189799073dc64cdb00a07.zip |
wallet-core,harness: get p2p tests to pass again
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index 39f667496..daba2ead5 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -945,6 +945,9 @@ function greedySelectPeer( denom.feeDeposit, ); tally.amountAcc = Amounts.add(tally.amountAcc, coinSpend).amount; + // Since this is a peer payment, there is no merchant to + // potentially cover the deposit fees. + tally.amountAcc = Amounts.sub(tally.amountAcc, denom.feeDeposit).amount; tally.depositFeesAcc = Amounts.add( tally.depositFeesAcc, denom.feeDeposit, |