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

Function peer_got_announcement

lightningd/channel_control.c:1261–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1259}
1260
1261static void peer_got_announcement(struct channel *channel, const u8 *msg)
1262{
1263 secp256k1_ecdsa_signature remote_ann_node_sig;
1264 secp256k1_ecdsa_signature remote_ann_bitcoin_sig;
1265 struct short_channel_id scid;
1266
1267 if (!fromwire_channeld_got_announcement(msg,
1268 &scid,
1269 &remote_ann_node_sig,
1270 &remote_ann_bitcoin_sig)) {
1271 channel_internal_error(channel,
1272 "bad channel_got_announcement %s",
1273 tal_hex(tmpctx, msg));
1274 return;
1275 }
1276
1277 channel_gossip_got_announcement_sigs(channel, scid,
1278 &remote_ann_node_sig,
1279 &remote_ann_bitcoin_sig);
1280}
1281
1282static void peer_got_shutdown(struct channel *channel, const u8 *msg)
1283{

Callers 1

channel_msgFunction · 0.85

Calls 3

tal_hexFunction · 0.85
channel_internal_errorFunction · 0.70

Tested by

no test coverage detected