[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: wallet-core: do not return ta
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: wallet-core: do not return talerUri from peer push initiation |
Date: |
Thu, 16 Nov 2023 11:11:17 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new da3122c7a wallet-core: do not return talerUri from peer push initiation
da3122c7a is described below
commit da3122c7a812d4c425f61c1e159a8275d9cf4e3a
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Nov 16 11:11:18 2023 +0100
wallet-core: do not return talerUri from peer push initiation
URI might not be ready to use yet!
---
packages/taler-util/src/wallet-types.ts | 1 -
packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts | 6 ++++++
packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts | 5 -----
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/taler-util/src/wallet-types.ts
b/packages/taler-util/src/wallet-types.ts
index 447068188..7a4ad91e8 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -2443,7 +2443,6 @@ export interface InitiatePeerPushDebitResponse {
pursePub: string;
mergePriv: string;
contractPriv: string;
- talerUri: string;
transactionId: TransactionIdStr;
}
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 e4698c203..38328171d 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
@@ -166,11 +166,17 @@ export async function preparePeerPushCredit(
const purseHttpResp = await ws.http.fetch(getPurseUrl.href);
+ const contractTerms = codecForPeerContractTerms().decode(dec.contractTerms);
+
const purseStatus = await readSuccessResponseJsonOrThrow(
purseHttpResp,
codecForExchangePurseStatus(),
);
+ logger.info(
+ `peer push credit, purse balance ${purseStatus.balance}, contract amount
${contractTerms.amount}`,
+ );
+
const peerPushCreditId = encodeCrock(getRandomBytes(32));
const contractTermsHash = ContractTermsUtil.hashContractTerms(
diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
index 284486506..db4b63657 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer-push-debit.ts
@@ -701,11 +701,6 @@ export async function initiatePeerPushDebit(
mergePriv: mergePair.priv,
pursePub: pursePair.pub,
exchangeBaseUrl: coinSelRes.result.exchangeBaseUrl,
- talerUri: stringifyTalerUri({
- type: TalerUriAction.PayPush,
- exchangeBaseUrl: coinSelRes.result.exchangeBaseUrl,
- contractPriv: contractKeyPair.priv,
- }),
transactionId: constructTransactionIdentifier({
tag: TransactionType.PeerPushDebit,
pursePub: pursePair.pub,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: wallet-core: do not return talerUri from peer push initiation,
gnunet <=