diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:50 +0200 |
commit | f3a4b00907410444055f47d4ff2074b44f981ad3 (patch) | |
tree | cb8f191a285152649e0b780aad8154f5b819f924 /src/exchange/taler-exchange-httpd_melt.c | |
parent | 71916414069d18ec5b7d5901d52d62a2aaa1403d (diff) | |
download | exchange-f3a4b00907410444055f47d4ff2074b44f981ad3.tar.gz exchange-f3a4b00907410444055f47d4ff2074b44f981ad3.tar.bz2 exchange-f3a4b00907410444055f47d4ff2074b44f981ad3.zip |
adapt to latest GNUnet API: GNUNET_JSON_spec_mark_optional() changed
Diffstat (limited to 'src/exchange/taler-exchange-httpd_melt.c')
-rw-r--r-- | src/exchange/taler-exchange-httpd_melt.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/exchange/taler-exchange-httpd_melt.c b/src/exchange/taler-exchange-httpd_melt.c index 2ff03023a..3d6f05c0a 100644 --- a/src/exchange/taler-exchange-httpd_melt.c +++ b/src/exchange/taler-exchange-httpd_melt.c @@ -120,9 +120,9 @@ struct MeltContext bool coin_is_dirty; /** - * True if @e rms is set. + * True if @e rms is missing. */ - bool have_rms; + bool no_rms; }; @@ -161,9 +161,9 @@ melt_transaction (void *cls, if (0 > (qs = TEH_plugin->do_melt (TEH_plugin->cls, - rmc->have_rms - ? &rmc->rms - : NULL, + rmc->no_rms + ? NULL + : &rmc->rms, &rmc->refresh_session, rmc->known_coin_id, &rmc->zombie_required, @@ -443,7 +443,8 @@ TEH_handler_melt (struct MHD_Connection *connection, &rmc.refresh_session.coin.denom_pub_hash), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ("age_commitment_hash", - &rmc.refresh_session.coin.h_age_commitment)), + &rmc.refresh_session.coin.h_age_commitment), + &rmc.refresh_session.coin.no_age_commitment), GNUNET_JSON_spec_fixed_auto ("confirm_sig", &rmc.refresh_session.coin_sig), TALER_JSON_spec_amount ("value_with_fee", @@ -453,7 +454,8 @@ TEH_handler_melt (struct MHD_Connection *connection, &rmc.refresh_session.rc), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_fixed_auto ("rms", - &rmc.rms)), + &rmc.rms), + &rmc.no_rms), GNUNET_JSON_spec_end () }; @@ -469,9 +471,6 @@ TEH_handler_melt (struct MHD_Connection *connection, return (GNUNET_SYSERR == ret) ? MHD_NO : MHD_YES; } - rmc.have_rms = (NULL != json_object_get (root, - "rms")); - { MHD_RESULT res; |