cln/wallet/test
Sangbida Chaudhuri 0a10e74e0d wallet: read UTXO state from our_outputs
With every writer dual-writing since the previous two commits, flip
the readers: all UTXO queries (listfunds, coin selection, reservations,
onchaind close info) now come from our_outputs, and the legacy-only
read helpers (wallet_stmt2output, gather_utxos, db_get_unspent_utxos)
are deleted.

our_output_row_to_utxo replaces wallet_stmt2output, using channel_dbid
to discriminate HD outputs from channel-close outputs, and
wallet_get_spendable_utxos centralizes the unspent+unreserved query
that wallet_find_utxo and wallet_has_funds previously duplicated.

migrate_setup_coinmoves keeps reading the legacy table directly: that
migration runs at v25.09, before our_outputs exists.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-28 09:30:11 +10:00
..
.gitignore wallet: move tests into test/ dir like other unit tests. 2017-12-13 22:46:10 +01:00
Makefile Makefile: create a library containing common, wire and bitcoin objects. 2025-10-23 06:44:04 +10:30
run-chain_moves_duplicate-detect.c wallet: record bwatch-discovered wallet outputs 2026-07-28 09:30:11 +10:00
run-db.c wallet: record bwatch-discovered wallet outputs 2026-07-28 09:30:11 +10:00
run-migrate_backfill_bwatch_tables.c wallet: add migrate_backfill_bwatch_tables 2026-07-28 09:30:11 +10:00
run-migrate_remove_chain_moves_duplicates.c wallet: record bwatch-discovered wallet outputs 2026-07-28 09:30:11 +10:00
run-psbt_fixup.c global: remove unnecessary includes from C files. 2025-10-23 06:44:04 +10:30
run-wallet.c wallet: read UTXO state from our_outputs 2026-07-28 09:30:11 +10:00
test_utils.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
test_utils.h check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30