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

Function opt_set_sat_nondust

lightningd/options.c:1212–1220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1210}
1211
1212static char *opt_set_sat_nondust(const char *arg, struct amount_sat *sat)
1213{
1214 char *ret = opt_set_sat(arg, sat);
1215 if (ret)
1216 return ret;
1217 if (amount_sat_less(*sat, chainparams->dust_limit))
1218 return tal_fmt(tmpctx, "Option must be over dust limit!");
1219 return NULL;
1220}
1221
1222static bool opt_show_sat(char *buf, size_t len, const struct amount_sat *sat)
1223{

Callers

nothing calls this directly

Calls 2

opt_set_satFunction · 0.85
amount_sat_lessFunction · 0.85

Tested by

no test coverage detected