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

Function parse_channel_index

common/splice_script.c:1537–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1535}
1536
1537static bool parse_channel_index(struct token *token, size_t *channel_index)
1538{
1539 long long result;
1540 char *endptr;
1541 if (!token->str || !strlen(token->str))
1542 return false;
1543
1544 errno = 0;
1545 result = strtoll(token->str, &endptr, 10);
1546 if (errno || *endptr)
1547 return false;
1548
1549 *channel_index = result;
1550 return true;
1551}
1552
1553static bool parse_feerate(struct token *token, u32 *feerate)
1554{

Callers 1

resolve_channel_idsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected