| 466 | } |
| 467 | |
| 468 | static void json_add_standard_notify_mvt_fields(struct json_stream *stream, |
| 469 | struct lightningd *ld, |
| 470 | const char *type) |
| 471 | { |
| 472 | json_add_num(stream, "version", COIN_MVT_VERSION); |
| 473 | json_add_string(stream, "coin_type", chainparams->lightning_hrp); |
| 474 | json_add_node_id(stream, "node_id", &ld->our_nodeid); |
| 475 | json_add_string(stream, "type", type); |
| 476 | } |
| 477 | |
| 478 | REGISTER_NOTIFICATION(coin_movement); |
| 479 |
no test coverage detected