diff options
| author | Özgür Kesim <oec-taler@kesim.org> | 2022-02-17 12:23:06 +0100 | 
|---|---|---|
| committer | Özgür Kesim <oec-taler@kesim.org> | 2022-02-18 00:30:19 +0100 | 
| commit | a78b3345fbf017b1cddfd09afb4b2c29287b0bba (patch) | |
| tree | 45752022adc8b1661fb1662df40af4d58ab7d5f4 /src/exchangedb | |
| parent | 8bdf6ab19df70c16d335ecf82f2c3b2117eeb70e (diff) | |
[age restriction] progress 15/n - melt/refresh/reveal and recoup
Added age restriction support for
  - melt/refresh/reveal
  - recoup
However, tests are not yet implemented for those flows.
Also: minor fixes and refactoring.
Diffstat (limited to 'src/exchangedb')
| -rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 878c36f9..8f7a0940 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -5664,7 +5664,7 @@ postgres_get_known_coin (void *cls,      GNUNET_PQ_result_spec_auto_from_type ("denom_pub_hash",                                            &coin_info->denom_pub_hash),      GNUNET_PQ_result_spec_auto_from_type ("age_hash", -                                          &coin_info->age_commitment_hash), +                                          &coin_info->h_age_commitment),      TALER_PQ_result_spec_denom_sig ("denom_sig",                                      &coin_info->denom_sig),      GNUNET_PQ_result_spec_end @@ -5780,7 +5780,7 @@ postgres_ensure_coin_known (void *cls,    struct GNUNET_PQ_QueryParam params[] = {      GNUNET_PQ_query_param_auto_from_type (&coin->coin_pub),      GNUNET_PQ_query_param_auto_from_type (&coin->denom_pub_hash), -    GNUNET_PQ_query_param_auto_from_type (&coin->age_commitment_hash), +    GNUNET_PQ_query_param_auto_from_type (&coin->h_age_commitment),      TALER_PQ_query_param_denom_sig (&coin->denom_sig),      GNUNET_PQ_query_param_end    }; @@ -5830,7 +5830,7 @@ postgres_ensure_coin_known (void *cls,    if ( (! is_age_hash_null) &&         (0 != GNUNET_memcmp (age_hash, -                            &coin->age_commitment_hash)) ) +                            &coin->h_age_commitment)) )    {      GNUNET_break (GNUNET_is_zero (age_hash));      GNUNET_break_op (0); | 
