| 546 | REGISTER_NOTIFICATION(balance_snapshot); |
| 547 | |
| 548 | void notify_balance_snapshot(struct lightningd *ld, |
| 549 | const struct balance_snapshot *snap) |
| 550 | { |
| 551 | struct jsonrpc_notification *n = notify_start(ld, "balance_snapshot"); |
| 552 | if (!n) |
| 553 | return; |
| 554 | balance_snapshot_serialize(n->stream, snap); |
| 555 | notify_send(ld, n); |
| 556 | } |
| 557 | |
| 558 | static void block_added_notification_serialize(struct json_stream *stream, |
| 559 | const struct block *block) |
no test coverage detected