summaryrefslogtreecommitdiff
path: root/src/operations/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-27 21:11:20 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-27 21:11:20 +0530
commit5be0708a10874be939e63ca82082cd665165823c (patch)
treed67531e204513905ffe90b7874baead3afe50305 /src/operations/pending.ts
parente404f5e6d3001906c11b82a532db518720caebfd (diff)
downloadwallet-core-5be0708a10874be939e63ca82082cd665165823c.tar.gz
wallet-core-5be0708a10874be939e63ca82082cd665165823c.tar.bz2
wallet-core-5be0708a10874be939e63ca82082cd665165823c.zip
adopt new merchant refund API
Diffstat (limited to 'src/operations/pending.ts')
-rw-r--r--src/operations/pending.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts
index 3e548a27f..a797763bf 100644
--- a/src/operations/pending.ts
+++ b/src/operations/pending.ts
@@ -396,26 +396,6 @@ async function gatherPurchasePending(
});
}
}
- const numRefundsPending = Object.keys(pr.refundState.refundsPending).length;
- if (numRefundsPending > 0) {
- const numRefundsDone = Object.keys(pr.refundState.refundsDone).length;
- resp.nextRetryDelay = updateRetryDelay(
- resp.nextRetryDelay,
- now,
- pr.refundApplyRetryInfo.nextRetry,
- );
- if (!onlyDue || pr.refundApplyRetryInfo.nextRetry.t_ms <= now.t_ms) {
- resp.pendingOperations.push({
- type: PendingOperationType.RefundApply,
- numRefundsDone,
- numRefundsPending,
- givesLifeness: true,
- proposalId: pr.proposalId,
- retryInfo: pr.refundApplyRetryInfo,
- lastError: pr.lastRefundApplyError,
- });
- }
- }
});
}