diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-03 18:02:16 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-04-03 18:02:16 +0200 |
commit | 6e6ce685ea0240abd1fcef9ac8f44d0252aef823 (patch) | |
tree | 8284cfb198d8c841904a6dd6afec19853aef25b9 /src/include | |
parent | 35c064b93739795832598893b1885ff7cfd9faf8 (diff) |
Provide API to fake now when requesting /keys.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/taler_exchange_service.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h index 88fcf74af..880e60389 100644 --- a/src/include/taler_exchange_service.h +++ b/src/include/taler_exchange_service.h @@ -422,6 +422,26 @@ TALER_EXCHANGE_disconnect (struct TALER_EXCHANGE_Handle *exchange); const struct TALER_EXCHANGE_Keys * TALER_EXCHANGE_get_keys (struct TALER_EXCHANGE_Handle *exchange); + +/** + * Set the fake now to be used when requesting "/keys". + * + * @param exchange exchange handle. + * @param now fake now to use. Note: this value will be + * used _until_ its use will be unset via @a TALER_EXCHANGE_unset_now() + */ +void +TALER_EXCHANGE_set_now (struct TALER_EXCHANGE_Handle *exchange, + struct GNUNET_TIME_Absolute now); + +/** + * Unset the fake now to be used when requesting "/keys". + * + * @param exchange exchange handle. + */ +void +TALER_EXCHANGE_unset_now (struct TALER_EXCHANGE_Handle *exchange); + /** * Let the user set the last valid denomination time manually. * |