| 384 | } |
| 385 | |
| 386 | void json_add_invstring(struct json_stream *result, const char *invstring) |
| 387 | { |
| 388 | if (strstarts(invstring, "lni")) |
| 389 | json_add_string(result, "bolt12", invstring); |
| 390 | else |
| 391 | json_add_string(result, "bolt11", invstring); |
| 392 | } |
| 393 | |
| 394 | void json_add_node_id(struct json_stream *response, |
| 395 | const char *fieldname, |
nothing calls this directly
no test coverage detected