diff options
author | Sebastian <sebasjm@gmail.com> | 2023-09-14 10:56:34 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-09-14 10:56:34 -0300 |
commit | ee48a39eb370e65564317f7c77e2cd52e8a0c42f (patch) | |
tree | f6d7287d7a3f3432d72856abc8b53de09d6b52cb /packages/taler-wallet-core/src/util/coinSelection.ts | |
parent | a5960665245c4ffb625dd16923019e8c62c20159 (diff) | |
download | wallet-core-ee48a39eb370e65564317f7c77e2cd52e8a0c42f.tar.xz |
merchant payment
Diffstat (limited to 'packages/taler-wallet-core/src/util/coinSelection.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/coinSelection.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/coinSelection.ts b/packages/taler-wallet-core/src/util/coinSelection.ts index 0885215dd..0b1be881f 100644 --- a/packages/taler-wallet-core/src/util/coinSelection.ts +++ b/packages/taler-wallet-core/src/util/coinSelection.ts @@ -419,6 +419,9 @@ interface SelResult { }; } +export function testing_selectGreedy(...args: Parameters<typeof selectGreedy>): ReturnType<typeof selectGreedy>{ + return selectGreedy(...args) +} function selectGreedy( req: SelectPayCoinRequestNg, candidateDenoms: AvailableDenom[], @@ -930,7 +933,7 @@ function greedySelectPeer( ).amount; tally.lastDepositFee = Amounts.parseOrThrow(denom.feeDeposit); - + contributions.push(coinSpend); } if (contributions.length > 0) { |