diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-02-14 23:02:25 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-02-14 23:02:25 +0100 |
commit | bd77bcb52dcad4b761f3db0acaa6b71b112a31c2 (patch) | |
tree | f519ebc30bf0917d9f2e91667a20beac71284586 /src/exchangedb/plugin_exchangedb_postgres.c | |
parent | f4f40a31efd3028dec36c0b84a49617926b5f9c3 (diff) | |
download | exchange-bd77bcb52dcad4b761f3db0acaa6b71b112a31c2.tar.gz exchange-bd77bcb52dcad4b761f3db0acaa6b71b112a31c2.tar.bz2 exchange-bd77bcb52dcad4b761f3db0acaa6b71b112a31c2.zip |
-towards fixing the protocol
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r-- | src/exchangedb/plugin_exchangedb_postgres.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c index dfa18e9e3..ce184f48d 100644 --- a/src/exchangedb/plugin_exchangedb_postgres.c +++ b/src/exchangedb/plugin_exchangedb_postgres.c @@ -1218,6 +1218,7 @@ prepare_statements (struct PostgresClosure *pg) ",rrc.ewv" ",rrc.link_sig" ",rrc.freshcoin_index" + ",rrc.coin_ev" " FROM refresh_commitments" " JOIN refresh_revealed_coins rrc" " USING (melt_serial_id)" @@ -6385,6 +6386,7 @@ add_ldl (void *cls, pos = GNUNET_new (struct TALER_EXCHANGEDB_LinkList); { + struct TALER_BlindedPlanchet bp; struct GNUNET_PQ_ResultSpec rs[] = { GNUNET_PQ_result_spec_auto_from_type ("transfer_pub", &transfer_pub), @@ -6398,6 +6400,8 @@ add_ldl (void *cls, &pos->alg_values), TALER_PQ_result_spec_denom_pub ("denom_pub", &pos->denom_pub), + TALER_PQ_result_spec_blinded_planchet ("coin_ev", + &bp), GNUNET_PQ_result_spec_end }; @@ -6411,6 +6415,12 @@ add_ldl (void *cls, ldctx->status = GNUNET_SYSERR; return; } + if (TALER_DENOMINATION_CS == bp.cipher) + { + pos->nonce = bp.details.cs_blinded_planchet.nonce; + pos->have_nonce = true; + } + TALER_blinded_planchet_free (&bp); } if ( (NULL != ldctx->last) && (0 == GNUNET_memcmp (&transfer_pub, |