| 269 | } |
| 270 | |
| 271 | static void peer_got_announcement(struct channel *channel, const u8 *msg) |
| 272 | { |
| 273 | secp256k1_ecdsa_signature remote_ann_node_sig; |
| 274 | secp256k1_ecdsa_signature remote_ann_bitcoin_sig; |
| 275 | |
| 276 | if (!fromwire_channeld_got_announcement(msg, |
| 277 | &remote_ann_node_sig, |
| 278 | &remote_ann_bitcoin_sig)) { |
| 279 | channel_internal_error(channel, |
| 280 | "bad channel_got_announcement %s", |
| 281 | tal_hex(tmpctx, msg)); |
| 282 | return; |
| 283 | } |
| 284 | |
| 285 | wallet_announcement_save(channel->peer->ld->wallet, channel->dbid, |
| 286 | &remote_ann_node_sig, |
| 287 | &remote_ann_bitcoin_sig); |
| 288 | } |
| 289 | |
| 290 | static void peer_got_shutdown(struct channel *channel, const u8 *msg) |
| 291 | { |
no test coverage detected