diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-09-11 23:03:30 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-09-11 23:03:30 +0200 |
commit | 7890c46c9d0b47589ec3144a154cc6e2b27249dc (patch) | |
tree | aa2b8f51c06db830013a02b5cfe21207c29f6843 /src/exchangedb | |
parent | fe986813b6989dacf55e820e3b06fcce7575d3b7 (diff) | |
download | exchange-7890c46c9d0b47589ec3144a154cc6e2b27249dc.tar.xz |
one more missing check for no_age_commitment hash
Diffstat (limited to 'src/exchangedb')
-rw-r--r-- | src/exchangedb/pg_ensure_coin_known.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exchangedb/pg_ensure_coin_known.c b/src/exchangedb/pg_ensure_coin_known.c index 346135756..952acf24f 100644 --- a/src/exchangedb/pg_ensure_coin_known.c +++ b/src/exchangedb/pg_ensure_coin_known.c @@ -41,7 +41,9 @@ TEH_PG_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->h_age_commitment), + coin->no_age_commitment + ? GNUNET_PQ_query_param_null () + : 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 }; |