MCPcopy Create free account
hub / github.com/ElementsProject/lightning / resolve_all_output_amount

Function resolve_all_output_amount

plugins/txprepare.c:265–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265static bool resolve_all_output_amount(struct txprepare *txp,
266 struct amount_sat excess)
267{
268 if (!amount_sat_greater_eq(excess, chainparams->dust_limit))
269 return false;
270
271 assert(amount_sat_eq(txp->outputs[txp->all_output_idx].amount,
272 AMOUNT_SAT(-1ULL)));
273 txp->outputs[txp->all_output_idx].amount = excess;
274 return true;
275}
276
277/* fundpsbt/utxopsbt gets a viable PSBT for us. */
278static struct command_result *psbt_created(struct command *cmd,

Callers 1

psbt_createdFunction · 0.85

Calls 2

amount_sat_greater_eqFunction · 0.50
amount_sat_eqFunction · 0.50

Tested by

no test coverage detected