From 9ae46f367e606f9b3866b361459e05a71be9f310 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Sep 2023 11:27:33 +0200 Subject: first cut for API to get coin history --- src/auditor/taler-helper-auditor-coins.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/auditor/taler-helper-auditor-coins.c') diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c index bfdc11c7e..8c3d66b98 100644 --- a/src/auditor/taler-helper-auditor-coins.c +++ b/src/auditor/taler-helper-auditor-coins.c @@ -435,9 +435,14 @@ check_coin_history (const struct TALER_CoinSpendPublicKeyP *coin_pub, struct TALER_Amount refunded; struct TALER_Amount deposit_fee; bool have_refund; + uint64_t etag = 0; + /* TODO: could use 'etag' mechanism to only fetch transactions + we did not yet process, instead of going over them + again and again. */ qs = TALER_ARL_edb->get_coin_transactions (TALER_ARL_edb->cls, coin_pub, + &etag, &tl); if (0 >= qs) return qs; -- cgit v1.2.3