MCPcopy Create free account
hub / github.com/ElementsProject/lightning / peer_got_announcement

Function peer_got_announcement

lightningd/channel_control.c:271–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271static 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
290static void peer_got_shutdown(struct channel *channel, const u8 *msg)
291{

Callers 1

channel_msgFunction · 0.85

Calls 3

tal_hexFunction · 0.85
wallet_announcement_saveFunction · 0.85
channel_internal_errorFunction · 0.70

Tested by

no test coverage detected