commit 10dd553ccdeaa19610ad9f9075d1135ab6994ce2
parent 0d665e7bb6cf93127451b6201a5c9e1198feb5f7
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 3 Apr 2026 20:22:30 +0200
expose more details from protocol in Rest API
Diffstat:
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/lib/exchange_api_post-purses-PURSE_PUB-create.c b/src/lib/exchange_api_post-purses-PURSE_PUB-create.c
@@ -266,7 +266,7 @@ handle_purse_create_deposit_finished (void *cls,
}
if (GNUNET_OK !=
TALER_EXCHANGE_test_signing_key (keys,
- &exchange_pub))
+ &dr.details.ok.exchange_pub))
{
GNUNET_break_op (0);
dr.hr.http_status = 0;
@@ -275,22 +275,20 @@ handle_purse_create_deposit_finished (void *cls,
}
if (GNUNET_OK !=
TALER_exchange_online_purse_created_verify (
- etime,
+ dr.details.ok.exchange_timestamp,
pch->purse_expiration,
&pch->purse_value_after_fees,
- &total_deposited,
+ &dr.details.ok.total_deposited,
&pch->purse_pub,
&pch->h_contract_terms,
- &exchange_pub,
- &exchange_sig))
+ &dr.details.ok.exchange_pub,
+ &dr.details.ok.exchange_sig))
{
GNUNET_break_op (0);
dr.hr.http_status = 0;
dr.hr.ec = TALER_EC_EXCHANGE_PURSE_CREATE_EXCHANGE_SIGNATURE_INVALID;
break;
}
- dr.details.ok.exchange_pub = exchange_pub;
- dr.details.ok.exchange_sig = exchange_sig;
}
break;
case MHD_HTTP_BAD_REQUEST: