core-lightning/plugins/spender
Rusty Russell 3e57496af9 plugins: don't let multifundchannel open a new anchor channel without reserves.
If we're opening a channel with a peer which support anchors (and
we do), we tell fundpsbt/utxopsbt to enforce the emergency reserve;
this matters, as it doesn't know about the channel yet, and thus
won't (if it's our first anchor channel).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: JSON-RPC: `fundchannel` and `multifundchannel` will refuse to spend funds below `min-emergency-msat` if we have any anchor channels (or are opening one).
2023-06-29 11:28:47 -04:00
..
fundchannel.c openingd: Add reserve to fundchannel and multifundchannel 2022-09-21 11:25:47 +02:00
fundchannel.h plugins/spender/fundchannel.c: Make fundchannel a thin layer around multifundchannel. 2020-09-10 15:28:50 +09:30
main.c check: make sure all files outside contrib/ include "config.h" first. 2021-12-06 10:05:39 +10:30
multifundchannel.c plugins: don't let multifundchannel open a new anchor channel without reserves. 2023-06-29 11:28:47 -04:00
multifundchannel.h multifundchannel: use excess_as_change flag to simplify logic. 2023-06-29 11:28:47 -04:00
multiwithdraw.c Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30
multiwithdraw.h
openchannel.c Update libwally to 0.8.8, support PSBTv2 2023-03-23 16:10:55 +10:30
openchannel.h mfc-df: after sigs are collected, go sign the psbt 2020-11-23 12:41:05 -06:00