core-lightning/plugins/spender
niftynei c6ac45d743 fundchannel: remove crash on race condition
If the peer sends you their signatures before we return from the *first*
openchannel_update then the state would still be in
MULTIFUNDCHANNEL_STARTED (not UPDATED) and we'd incorrectly switch the
state to MULTIFUNDCHANNEL_SIGNED, which would plunge us headfirst into
`check_sigs_ready`.

However the `mfc->txid` hadn't been set yet, so we'd crash when trying
to confirm that we've got sigs for the correct txid. Oops.

To fix this, we simply invert the check such that the *only* state that
will move into SIGNED is SECURED
2024-07-03 09:11:52 +09:30
..
fundchannel.c fundchannel_start & multifundchannel: add channel_type. 2024-01-29 13:40:34 +10:30
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 dualopend: remove min_witness_weight requirement 2024-05-09 16:14:23 -05:00
multifundchannel.h fundchannel_start & multifundchannel: add channel_type. 2024-01-29 13:40:34 +10:30
multiwithdraw.c common: remove type_to_string files altogther. 2024-03-20 13:51:48 +10:30
multiwithdraw.h plugins/spender/multiwithdraw.c: Implement multiwithdraw command. 2020-09-09 20:36:08 +09:30
openchannel.c fundchannel: remove crash on race condition 2024-07-03 09:11:52 +09:30
openchannel.h mfc-df: after sigs are collected, go sign the psbt 2020-11-23 12:41:05 -06:00