Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ZmnSCPxj committed Aug 21, 2020
1 parent 2aa10f4 commit 810b615
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/multifundchannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,15 @@ create_destinations_array(struct multifundchannel_command *mfc,
"Invalid node id: %s",
id);

if (!amount_sat_eq(*amount, AMOUNT_SAT(-1ULL)) &&
amount_sat_less(*amount, chainparams->dust_limit))
return mfc_fail(mfc, FUND_OUTPUT_IS_DUST,
"Output \"%s\": %s would be dust",
id,
type_to_string(tmpctx,
struct amount_sat,
amount));

dest->index = i;
dest->mfc = mfc;
dest->addrhint = addrhint;
Expand Down

0 comments on commit 810b615

Please sign in to comment.