| 217 | channel_opened_notification_serialize) |
| 218 | |
| 219 | void notify_channel_opened(struct lightningd *ld, struct node_id *node_id, |
| 220 | struct amount_sat *funding_sat, struct bitcoin_txid *funding_txid, |
| 221 | bool channel_ready) |
| 222 | { |
| 223 | void (*serialize)(struct json_stream *, |
| 224 | struct node_id *, |
| 225 | struct amount_sat *, |
| 226 | struct bitcoin_txid *, |
| 227 | bool) = channel_opened_notification_gen.serialize; |
| 228 | |
| 229 | struct jsonrpc_notification *n |
| 230 | = jsonrpc_notification_start(NULL, channel_opened_notification_gen.topic); |
| 231 | serialize(n->stream, node_id, funding_sat, funding_txid, channel_ready); |
| 232 | jsonrpc_notification_end(n); |
| 233 | plugins_notify(ld->plugins, take(n)); |
| 234 | } |
| 235 | |
| 236 | static void channel_state_changed_notification_serialize(struct json_stream *stream, |
| 237 | struct node_id *peer_id, |
no test coverage detected