mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-13 12:32:55 +02:00
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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| run-chain_moves_duplicate-detect.c | ||
| run-db.c | ||
| run-migrate_backfill_bwatch_tables.c | ||
| run-migrate_remove_chain_moves_duplicates.c | ||
| run-psbt_fixup.c | ||
| run-wallet.c | ||
| test_utils.c | ||
| test_utils.h | ||