mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 06:54:30 +01:00
lightningd: don't complain about bad funding PSBT for elements.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1031,9 +1031,11 @@ static struct command_result *json_fundchannel_complete(struct command *cmd,
|
||||
return command_fail(cmd, FUNDING_PSBT_INVALID,
|
||||
"No output to open channel");
|
||||
|
||||
if (!amount_sat_eq(amount_sat(funding_psbt->tx->outputs
|
||||
[*funding_txout_num].satoshi),
|
||||
fc->funding))
|
||||
/* Can't really check amounts for elements. */
|
||||
if (!chainparams->is_elements
|
||||
&& !amount_sat_eq(amount_sat(funding_psbt->tx->outputs
|
||||
[*funding_txout_num].satoshi),
|
||||
fc->funding))
|
||||
return command_fail(cmd, FUNDING_PSBT_INVALID,
|
||||
"Output to open channel is %"PRIu64"sat,"
|
||||
" should be %s",
|
||||
|
||||
Reference in New Issue
Block a user