diff options
Diffstat (limited to 'src/sync/sync-httpd.c')
-rw-r--r-- | src/sync/sync-httpd.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/sync/sync-httpd.c b/src/sync/sync-httpd.c index 3e13c31..0ec95e7 100644 --- a/src/sync/sync-httpd.c +++ b/src/sync/sync-httpd.c @@ -120,6 +120,11 @@ static char *apikey; */ static char *keypass; +/** + * Amount of insurance. + */ +struct TALER_Amount SH_insurance; + /** * A client has requested the given url using the given method @@ -557,6 +562,18 @@ run (void *cls, if (GNUNET_OK != TALER_config_get_amount (config, "sync", + "INSURANCE", + &SH_insurance)) + { + GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, + "sync", + "INSURANCE"); + GNUNET_SCHEDULER_shutdown (); + return; + } + if (GNUNET_OK != + TALER_config_get_amount (config, + "sync", "ANNUAL_FEE", &SH_annual_fee)) { |