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

Function amount_option

plugins/funder.c:1645–1655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1643}
1644
1645static char *amount_option(struct command *cmd, const char *arg, bool check_only,
1646 struct amount_sat *amt)
1647{
1648 struct amount_sat v;
1649 if (!parse_amount_sat(&v, arg, strlen(arg)))
1650 return tal_fmt(tmpctx, "Unable to parse amount '%s'", arg);
1651
1652 if (!check_only)
1653 *amt = v;
1654 return NULL;
1655}
1656
1657static bool jsonfmt_amount_sat(struct command *cmd,
1658 struct json_stream *js,

Callers 1

option_lease_fee_baseFunction · 0.85

Calls 1

parse_amount_satFunction · 0.50

Tested by

no test coverage detected