From 74e4c6429a09a5f13c958c9ede068fc094a9552d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 25 Dec 2021 16:13:06 +0100 Subject: clean up refresh-reveal logic, reducing local copying --- src/exchangedb/plugin_exchangedb_postgres.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/exchangedb/plugin_exchangedb_postgres.c') diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index 32b04403..d76696aa 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -6084,7 +6084,6 @@ postgres_insert_refresh_reveal ( for (uint32_t i = 0; ih_denom_pub), GNUNET_PQ_query_param_fixed_size (rrc->coin_ev, rrc->coin_ev_size), - GNUNET_PQ_query_param_auto_from_type (&h_coin_ev), + GNUNET_PQ_query_param_auto_from_type (&rrc->h_coin_ev), TALER_PQ_query_param_blinded_denom_sig (&rrc->coin_sig), GNUNET_PQ_query_param_end }; enum GNUNET_DB_QueryStatus qs; - GNUNET_CRYPTO_hash (rrc->coin_ev, - rrc->coin_ev_size, - &h_coin_ev.hash); qs = GNUNET_PQ_eval_prepared_non_select (pg->conn, "insert_refresh_revealed_coin", params); -- cgit v1.2.3