exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit b375ae8cb9c94ac156799f7757bbe2a32a59c94f
parent 850c105f2b2bdd29bc833fdb6f954af50a9e88ed
Author: Florian Dold <florian@dold.me>
Date:   Wed, 11 Dec 2024 17:49:33 +0100

return target_pub from lookup_transfer_by_deposit in both cases

Diffstat:
Msrc/exchangedb/pg_lookup_transfer_by_deposit.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/exchangedb/pg_lookup_transfer_by_deposit.c b/src/exchangedb/pg_lookup_transfer_by_deposit.c @@ -154,6 +154,10 @@ TEH_PG_lookup_transfer_by_deposit ( GNUNET_PQ_result_spec_uint64 ("legitimization_requirement_serial_id", &kyc->requirement_row), NULL), + GNUNET_PQ_result_spec_allow_null ( + GNUNET_PQ_result_spec_auto_from_type ("target_pub", + account_pub), + NULL), GNUNET_PQ_result_spec_end }; @@ -166,6 +170,7 @@ TEH_PG_lookup_transfer_by_deposit ( ",denom.fee_deposit" ",bdep.wire_deadline" ",agt.legitimization_requirement_serial_id" + ",wt.target_pub" " FROM coin_deposits cdep" " JOIN batch_deposits bdep" " USING (batch_deposit_serial_id)"