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

Function output_wallet

plugins/spender/splice.c:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267static struct splice_script_result *output_wallet(struct splice_cmd *splice_cmd)
268{
269 for (size_t i = 0; i < tal_count(splice_cmd->actions); i++) {
270 struct splice_script_result *action = splice_cmd->actions[i];
271 if (!action->onchain_wallet)
272 continue;
273 if (action->in_ppm || !amount_sat_is_zero(action->in_sat))
274 return action;
275 }
276 return NULL;
277}
278
279static struct splice_script_result *fee_action(struct splice_cmd *splice_cmd)
280{

Callers 4

calc_in_ppm_and_feeFunction · 0.85
addpsbt_get_resultFunction · 0.85
calc_weightFunction · 0.85
handle_wallet_fundFunction · 0.85

Calls 1

amount_sat_is_zeroFunction · 0.85

Tested by

no test coverage detected