| 208 | #endif |
| 209 | |
| 210 | static void |
| 211 | invoice_payment_serialize(struct invoice_payment_hook_payload *payload, |
| 212 | struct json_stream *stream, |
| 213 | struct plugin *plugin) |
| 214 | { |
| 215 | json_object_start(stream, "payment"); |
| 216 | json_add_escaped_string(stream, "label", payload->label); |
| 217 | json_add_preimage(stream, "preimage", &payload->preimage); |
| 218 | json_add_string(stream, "msat", |
| 219 | type_to_string(tmpctx, struct amount_msat, |
| 220 | &payload->msat)); |
| 221 | #ifdef DEVELOPER |
| 222 | invoice_payment_add_tlvs(stream, payload->set); |
| 223 | #endif |
| 224 | json_object_end(stream); /* .payment */ |
| 225 | } |
| 226 | |
| 227 | /* Set times out or HTLC deleted? Remove set ptr from payload so we |
| 228 | * know to ignore plugin return */ |
nothing calls this directly
no test coverage detected