| 727 | } |
| 728 | |
| 729 | static bool has_lightning_prefix(const char *invstring) |
| 730 | { |
| 731 | /* BOLT #11: |
| 732 | * |
| 733 | * If a URI scheme is desired, the current recommendation is to either |
| 734 | * use 'lightning:' as a prefix before the BOLT-11 encoding */ |
| 735 | return (strstarts(invstring, "lightning:") || |
| 736 | strstarts(invstring, "LIGHTNING:")); |
| 737 | } |
| 738 | |
| 739 | const char *to_canonical_invstr(const tal_t *ctx, |
| 740 | const char *invstring) |
no outgoing calls
no test coverage detected