rgb-cln/wallet
Rusty Russell d5cb0d85b5 utils: use a cleaner pattern to capture wally allocations.
We force use of tal_wally_start/tal_wally_end around every wally
allocation, and with "end" make the caller choose where to reparent
everything.

This is particularly powerful where we allocate a tx or a psbt: we
want that tx or psbt to be the parent of the other allocations, so
this way we can reparent the tx or psbt, then reparent everything
else onto it.

Implementing psbt_finalize (which uses a behavior flag antipattern)
was tricky, so I ended up splitting that into 'psbt_finalize' and
'psbt_final_tx', which I think also makes the callers clearer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-09-23 14:45:53 +02:00
..
test lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
.gitignore wallet: Create and manage a sqlite3 database for the wallet 2017-06-06 09:16:10 +09:30
Makefile Makefile: fix up sqlgen and docgen rules. 2020-09-08 12:49:02 +09:30
db.c db: Fix size mismatch on postgres in a migration 2020-09-23 10:48:31 +09:30
db.h channel_id: save to database, dont derive from funding_txid 2020-09-09 19:54:20 +09:30
db_common.h allow building without sqlite3 2020-08-30 12:44:56 +02:00
db_postgres.c db: Add support for key-value pair DSNs in postgresql 2020-09-23 20:20:40 +09:30
db_postgres_sqlgen.c lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
db_sqlite3.c Makefile: protect .po file and gen_db files with SHA256STAMP. 2020-08-31 21:33:26 -05:00
db_sqlite3_sqlgen.c lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
invoices.c wallet: db_bind_talarr and db_column_talarr helpers. 2020-09-02 09:46:37 +09:30
invoices.h wallet: add invoice features into db. 2019-11-24 23:33:17 +00:00
reservation.c utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
statements_gettextgen.po lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
txfilter.c common: tal_dup_talarr() helper. 2020-02-27 14:16:16 +10:30
txfilter.h pubkey: rename PUBKEY_DER_LEN to PUBKEY_CMPR_LEN. 2019-04-09 12:37:16 -07:00
wallet.c lightningd: separate fee_states out of struct channel_info. 2020-09-23 15:51:13 +09:30
wallet.h Added additional fix to code formatting and English spelling. 2020-09-10 17:27:51 +09:30
walletrpc.c utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
walletrpc.h wallet: new JSON commands reserveinputs and unreserveinputs. 2020-07-15 18:49:02 +09:30