From f048de97822f29ec3dae5de57fab7a72a1fc4d8a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 29 Jun 2017 20:46:52 +0200 Subject: preparations for #4840 --- src/include/taler_error_codes.h | 8 +++++++- src/include/taler_exchange_service.h | 7 +++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h index 5e9988ec7..907be847b 100644 --- a/src/include/taler_error_codes.h +++ b/src/include/taler_error_codes.h @@ -895,7 +895,13 @@ enum TALER_ErrorCode */ TALER_EC_PAYBACK_COIN_BALANCE_NEGATIVE = 1857, - + /** + * The "have" parameter was not a natural number. + * This reponse is provied with an HTTP status code of + * MHD_HTTP_BAD_REQUEST. + */ + TALER_EC_KEYS_HAVE_NOT_NUMERIC = 1900, + /* *********** Merchant backend error codes ********* */ diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 9a004a4f8..04fa51fff 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -205,6 +205,13 @@ struct TALER_EXCHANGE_Keys */ char *version; + /** + * Timestamp indicating the /keys generation. Monotonically + * increasing. Used to fetch /keys incrementally. Set from + * the "list_issue_date" timestamp of /keys. + */ + struct GNUNET_TIME_Absolute last_issue_date; + /** * Length of the @e sign_keys array. */ -- cgit v1.2.3