mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 16:14:23 +01:00
v2 opens: don't use p2sh inputs for v2 opens
They're not allowed!
This commit is contained in:
@@ -1404,6 +1404,9 @@ perform_fundpsbt(struct multifundchannel_command *mfc, u32 feerate)
|
||||
&mfc_forward_error,
|
||||
mfc);
|
||||
json_add_u32(req->js, "minconf", mfc->minconf);
|
||||
/* If there's any v2 opens, we can't use p2sh inputs */
|
||||
json_add_bool(req->js, "nonwrapped",
|
||||
dest_count(mfc, OPEN_CHANNEL) > 0);
|
||||
}
|
||||
|
||||
/* The entire point is to reserve the inputs. */
|
||||
|
||||
Reference in New Issue
Block a user