| 1754 | } |
| 1755 | |
| 1756 | static bool is_valid_middle(struct token *token) |
| 1757 | { |
| 1758 | switch(token->type) { |
| 1759 | case TOK_CHANID: |
| 1760 | if (!token->chan_id) |
| 1761 | return false; |
| 1762 | return true; |
| 1763 | case TOK_MULTI_CHANID: |
| 1764 | case TOK_BTCADDR: |
| 1765 | case TOK_WALLET: |
| 1766 | return true; |
| 1767 | case TOK_FEERATE: |
| 1768 | case TOK_CHAR: |
| 1769 | case TOK_ATSYM: |
| 1770 | case TOK_PLUS: |
| 1771 | case TOK_MINUS: |
| 1772 | case TOK_COLON: |
| 1773 | case TOK_LEASERATE: |
| 1774 | case TOK_ARROW: |
| 1775 | case TOK_PIPE: |
| 1776 | case TOK_STR: |
| 1777 | case TOK_SATS: |
| 1778 | case TOK_PERCENT: |
| 1779 | case TOK_QUESTION: |
| 1780 | case TOK_WILDCARD: |
| 1781 | case TOK_FEE: |
| 1782 | case TOK_NODEID: |
| 1783 | case TOK_CHANQUERY: |
| 1784 | case TOK_LEASEREQ: |
| 1785 | case TOK_DELIMITER: |
| 1786 | case TOK_SEGMENT: |
| 1787 | return false; |
| 1788 | } |
| 1789 | |
| 1790 | return false; |
| 1791 | } |
| 1792 | |
| 1793 | static struct splice_script_error *make_segments(const tal_t *ctx, |
| 1794 | struct token ***tokens_inout) |
no outgoing calls
no test coverage detected