mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-16 13:00:32 +02:00
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 |
||
|---|---|---|
| .. | ||
| fundchannel.c | ||
| fundchannel.h | ||
| main.c | ||
| multifundchannel.c | ||
| multifundchannel.h | ||
| multiwithdraw.c | ||
| multiwithdraw.h | ||
| openchannel.c | ||
| openchannel.h | ||