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

Function exemptfee_data_init

plugins/libplugin-pay.c:3231–3240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3229 * payment is below the threshold. */
3230
3231static struct exemptfee_data *exemptfee_data_init(struct payment *p)
3232{
3233 if (p->parent == NULL) {
3234 struct exemptfee_data *d = tal(p, struct exemptfee_data);
3235 d->amount = AMOUNT_MSAT(5000);
3236 return d;
3237 } else {
3238 return payment_mod_exemptfee_get_data(p->parent);
3239 }
3240}
3241
3242static struct command_result *exemptfee_cb(struct exemptfee_data *d, struct payment *p)
3243{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected