aboutsummaryrefslogtreecommitdiff
path: root/src/auditor
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2022-10-08 17:13:57 +0200
committerÖzgür Kesim <oec-taler@kesim.org>2022-10-08 17:13:57 +0200
commit4ba07b54e4ea2ac75c408f795cd806409450bc29 (patch)
treea9fe35d75de203450ea1eb16a83c3f2bcc527c65 /src/auditor
parentd3c509fcd91e5b7e430eda767108d961db196522 (diff)
WIP: policy_*_fulfiment added and API changes
- policy_fulfilment table defined, handlers added - policy_details_fulfilment table defined, handlers added - TALER_extensions_serial_from_policy_details implemened
Diffstat (limited to 'src/auditor')
-rw-r--r--src/auditor/taler-auditor-sync.c1
-rw-r--r--src/auditor/taler-helper-auditor-coins.c26
2 files changed, 14 insertions, 13 deletions
diff --git a/src/auditor/taler-auditor-sync.c b/src/auditor/taler-auditor-sync.c
index ebc38d10..bbe257ac 100644
--- a/src/auditor/taler-auditor-sync.c
+++ b/src/auditor/taler-auditor-sync.c
@@ -115,6 +115,7 @@ static struct Table tables[] = {
{ .rt = TALER_EXCHANGEDB_RT_EXTENSIONS},
{ .rt = TALER_EXCHANGEDB_RT_POLICY_DETAILS },
{ .rt = TALER_EXCHANGEDB_RT_POLICY_FULFILMENTS },
+ { .rt = TALER_EXCHANGEDB_RT_POLICY_DETAILS_FULFILMENTS },
{ .rt = TALER_EXCHANGEDB_RT_PURSE_REQUESTS},
{ .rt = TALER_EXCHANGEDB_RT_PURSE_REFUNDS},
{ .rt = TALER_EXCHANGEDB_RT_PURSE_MERGES},
diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c
index 6a9ed09d..af38b0cf 100644
--- a/src/auditor/taler-helper-auditor-coins.c
+++ b/src/auditor/taler-helper-auditor-coins.c
@@ -1620,19 +1620,19 @@ deposit_cb (void *cls,
want to do in parallel in the background to improve
auditor performance! */
if (GNUNET_OK !=
- TALER_wallet_deposit_verify (&deposit->amount_with_fee,
- &issue->fees.deposit,
- &h_wire,
- &deposit->h_contract_terms,
- &deposit->coin.h_age_commitment,
- deposit->no_policy_details ? NULL :
- &deposit->h_policy,
- &h_denom_pub,
- deposit->timestamp,
- &deposit->merchant_pub,
- deposit->refund_deadline,
- &deposit->coin.coin_pub,
- &deposit->csig))
+ TALER_wallet_deposit_verify (
+ &deposit->amount_with_fee,
+ &issue->fees.deposit,
+ &h_wire,
+ &deposit->h_contract_terms,
+ &deposit->coin.h_age_commitment,
+ deposit->has_policy_details ?
+ &deposit->h_policy :NULL, &h_denom_pub,
+ deposit->timestamp,
+ &deposit->merchant_pub,
+ deposit->refund_deadline,
+ &deposit->coin.coin_pub,
+ &deposit->csig))
{
TALER_ARL_report (report_bad_sig_losses,
GNUNET_JSON_PACK (