aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-09 16:45:06 +0100
committerFlorian Dold <florian@dold.me>2024-01-09 16:45:10 +0100
commit46f04b7f123d117cc639db74f66086382a7569c7 (patch)
treefb2b357af2ccbf26edb15c80fd58dac101cc8281 /packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
parentf8cde03f0cb6a7584fb92885f8979a01916a917d (diff)
downloadwallet-core-46f04b7f123d117cc639db74f66086382a7569c7.tar.xz
wallet-core: test peer-push-credit expiration
Diffstat (limited to 'packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts')
-rw-r--r--packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
index 6b7b62393..36606e732 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
@@ -599,14 +599,18 @@ export async function processPeerPushCredit(
await tx.peerPushCredit.put(peerInc);
});
- checkDbInvariant(!!contractTerms);
-
if (!peerInc) {
throw Error(
`can't accept unknown incoming p2p push payment (${peerPushCreditId})`,
);
}
+ logger.info(
+ `processing peerPushCredit in state ${peerInc.status.toString(16)}`,
+ );
+
+ checkDbInvariant(!!contractTerms);
+
switch (peerInc.status) {
case PeerPushCreditStatus.PendingMergeKycRequired: {
if (!peerInc.kycInfo) {