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

Function encode

tests/fuzz/fuzz-wire-channel_announcement.c:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21};
22
23static void *encode(const tal_t *ctx, const struct channel_announcement *s)
24{
25 return towire_channel_announcement(
26 ctx, &s->node_signature_1, &s->node_signature_2,
27 &s->bitcoin_signature_1, &s->bitcoin_signature_2, s->features,
28 &s->chain_hash, s->short_channel_id, &s->node_id_1, &s->node_id_2,
29 &s->bitcoin_key_1, &s->bitcoin_key_2);
30}
31
32static struct channel_announcement *decode(const tal_t *ctx, const void *p)
33{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected