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

Function input_wallet

plugins/spender/splice.c:251–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251static struct splice_script_result *input_wallet(struct splice_cmd *splice_cmd,
252 size_t *index)
253{
254 for (size_t i = 0; i < tal_count(splice_cmd->actions); i++) {
255 struct splice_script_result *action = splice_cmd->actions[i];
256 if (action->onchain_wallet
257 && !action->in_ppm
258 && amount_sat_is_zero(action->in_sat)) {
259 if (index)
260 *index = i;
261 return action;
262 }
263 }
264 return NULL;
265}
266
267static struct splice_script_result *output_wallet(struct splice_cmd *splice_cmd)
268{

Callers 4

calc_in_ppm_and_feeFunction · 0.85
handle_wallet_fundFunction · 0.85
handle_fee_and_ppmFunction · 0.85
continue_spliceFunction · 0.85

Calls 1

amount_sat_is_zeroFunction · 0.85

Tested by

no test coverage detected