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

Function adaptive_splitter_data_init

plugins/libplugin-pay.c:3673–3684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3671#define MPP_ADAPTIVE_LOWER_LIMIT AMOUNT_MSAT(100 * 1000)
3672
3673static struct adaptive_split_mod_data *adaptive_splitter_data_init(struct payment *p)
3674{
3675 struct adaptive_split_mod_data *d;
3676 if (p->parent == NULL) {
3677 d = tal(p, struct adaptive_split_mod_data);
3678 d->disable = false;
3679 d->htlc_budget = 0;
3680 return d;
3681 } else {
3682 return payment_mod_adaptive_splitter_get_data(p->parent);
3683 }
3684}
3685
3686static struct command_result *adaptive_splitter_cb(struct adaptive_split_mod_data *d, struct payment *p)
3687{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected