| 1535 | } |
| 1536 | |
| 1537 | static 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 | |
| 1553 | static bool parse_feerate(struct token *token, u32 *feerate) |
| 1554 | { |
no outgoing calls
no test coverage detected