| 271 | } |
| 272 | |
| 273 | REGISTER_NOTIFICATION(channel_opened) |
| 274 | |
| 275 | void notify_channel_opened(struct lightningd *ld, |
| 276 | const struct node_id *node_id, |
| 277 | const struct amount_sat *funding_sat, |
| 278 | const struct bitcoin_txid *funding_txid, |
| 279 | bool channel_ready) |
| 280 | { |
| 281 | struct jsonrpc_notification *n = notify_start(ld, "channel_opened"); |
| 282 | if (!n) |
| 283 | return; |
| 284 | channel_opened_notification_serialize(n->stream, ld, node_id, funding_sat, funding_txid, channel_ready); |
| 285 | notify_send(ld, n); |
| 286 | } |
| 287 | |
| 288 | /* Don't use this: omit fields instead! */ |
| 289 | static void json_add_null(struct json_stream *stream, const char *fieldname) |
no test coverage detected