diff options
Diffstat (limited to 'src/auditor')
-rw-r--r-- | src/auditor/taler-helper-auditor-aggregation.c | 8 | ||||
-rw-r--r-- | src/auditor/taler-helper-auditor-coins.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/auditor/taler-helper-auditor-aggregation.c b/src/auditor/taler-helper-auditor-aggregation.c index 81892c16c..8075e100b 100644 --- a/src/auditor/taler-helper-auditor-aggregation.c +++ b/src/auditor/taler-helper-auditor-aggregation.c @@ -767,7 +767,7 @@ wire_transfer_information_cb ( struct TALER_CoinPublicInfo coin; enum GNUNET_DB_QueryStatus qs; struct TALER_PaytoHashP hpt; - uint64_t etag = 0; + uint64_t etag_out; TALER_payto_hash (account_pay_uri, &hpt); @@ -780,12 +780,14 @@ wire_transfer_information_cb ( "h-payto does not match payto URI"); } /* Obtain coin's transaction history */ - /* TODO: could use 'etag' mechanism to only fetch transactions + /* TODO: could use 'start' 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, + 0, + 0, + &etag_out, &tl); if ( (qs < 0) || (NULL == tl) ) diff --git a/src/auditor/taler-helper-auditor-coins.c b/src/auditor/taler-helper-auditor-coins.c index 8c3d66b98..f873fa3cb 100644 --- a/src/auditor/taler-helper-auditor-coins.c +++ b/src/auditor/taler-helper-auditor-coins.c @@ -435,14 +435,16 @@ 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; + uint64_t etag_out; /* 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, + 0, + 0, + &etag_out, &tl); if (0 >= qs) return qs; |