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

Function amount_option

plugins/funder.c:1604–1614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1602}
1603
1604static char *amount_option(struct command *cmd, const char *arg, bool check_only,
1605 struct amount_sat *amt)
1606{
1607 struct amount_sat v;
1608 if (!parse_amount_sat(&v, arg, strlen(arg)))
1609 return tal_fmt(tmpctx, "Unable to parse amount '%s'", arg);
1610
1611 if (!check_only)
1612 *amt = v;
1613 return NULL;
1614}
1615
1616static bool jsonfmt_amount_sat(struct command *cmd,
1617 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