exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 316caf6036badf6a4fa2d16928648ad304ed866c
parent ee42b33acf398f7bbb00a516507c2522f0cee980
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  3 Jul 2025 17:24:32 +0200

more limit/offset/start/delta fixes in bank client code (#7949)

Diffstat:
Msrc/bank-lib/bank_api_credit.c | 8++++----
Msrc/bank-lib/bank_api_debit.c | 8++++----
Msrc/bank-lib/fakebank_common_parser.c | 2+-
3 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/bank-lib/bank_api_credit.c b/src/bank-lib/bank_api_credit.c @@ -343,7 +343,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx, /* 0 == start_row is implied, go with timeout into future */ GNUNET_snprintf (url, sizeof (url), - "history/incoming?delta=%lld&long_poll_ms=%llu", + "history/incoming?limit=%lld&long_poll_ms=%llu", (long long) num_results, tms); else @@ -351,7 +351,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx, hence timeout makes no sense */ GNUNET_snprintf (url, sizeof (url), - "history/incoming?delta=%lld", + "history/incoming?limit=%lld", (long long) num_results); } else @@ -361,7 +361,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx, /* going forward from num_result */ GNUNET_snprintf (url, sizeof (url), - "history/incoming?delta=%lld&start=%llu&long_poll_ms=%llu", + "history/incoming?limit=%lld&offset=%llu&long_poll_ms=%llu", (long long) num_results, (unsigned long long) start_row, tms); @@ -370,7 +370,7 @@ TALER_BANK_credit_history (struct GNUNET_CURL_Context *ctx, hence timeout makes no sense */ GNUNET_snprintf (url, sizeof (url), - "history/incoming?delta=%lld&start=%llu", + "history/incoming?limit=%lld&offset=%llu", (long long) num_results, (unsigned long long) start_row); } diff --git a/src/bank-lib/bank_api_debit.c b/src/bank-lib/bank_api_debit.c @@ -252,13 +252,13 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx, (! GNUNET_TIME_relative_is_zero (timeout)) ) GNUNET_snprintf (url, sizeof (url), - "history/outgoing?delta=%lld&long_poll_ms=%llu", + "history/outgoing?limit=%lld&long_poll_ms=%llu", (long long) num_results, tms); else GNUNET_snprintf (url, sizeof (url), - "history/outgoing?delta=%lld", + "history/outgoing?limit=%lld", (long long) num_results); } else @@ -267,14 +267,14 @@ TALER_BANK_debit_history (struct GNUNET_CURL_Context *ctx, (! GNUNET_TIME_relative_is_zero (timeout)) ) GNUNET_snprintf (url, sizeof (url), - "history/outgoing?delta=%lld&start=%llu&long_poll_ms=%llu", + "history/outgoing?limit=%lld&offset=%llu&long_poll_ms=%llu", (long long) num_results, (unsigned long long) start_row, tms); else GNUNET_snprintf (url, sizeof (url), - "history/outgoing?delta=%lld&start=%llu", + "history/outgoing?limit=%lld&offset=%llu", (long long) num_results, (unsigned long long) start_row); } diff --git a/src/bank-lib/fakebank_common_parser.c b/src/bank-lib/fakebank_common_parser.c @@ -58,7 +58,7 @@ TALER_FAKEBANK_common_parse_history_args ( if (NULL == limit) limit = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, - "limit"); + "delta"); long_poll_ms = MHD_lookup_connection_value (connection, MHD_GET_ARGUMENT_KIND, "long_poll_ms");