rgb-cln/hsmd
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
..
Makefile build: exclude dualopend from non-experimental builds 2020-09-09 19:54:20 +09:30
capabilities.h hsmd: add message to sign the mutual close transaction. 2018-07-24 00:40:01 +02:00
hsmd.c utils: use a cleaner pattern to capture wally allocations. 2020-09-23 14:45:53 +02:00
hsmd_wire.csv hsmd: convert to new wire generation style. 2020-08-25 12:53:13 +09:30
hsmd_wiregen.c update SHA256STAMPs using sorted dependencies 2020-09-17 10:23:40 +09:30
hsmd_wiregen.h update SHA256STAMPs using sorted dependencies 2020-09-17 10:23:40 +09:30