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:
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)"