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

Function encode

tests/fuzz/fuzz-wire-channel_update.c:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20static void *encode(const tal_t *ctx, const struct channel_update *s)
21{
22 return towire_channel_update(
23 ctx, &s->signature, &s->chain_hash, s->short_channel_id,
24 s->timestamp, s->message_flags, s->channel_flags,
25 s->cltv_expiry_delta, s->htlc_minimum_msat, s->fee_base_msat,
26 s->fee_proportional_millionths, s->htlc_maximum_msat);
27}
28
29static struct channel_update *decode(const tal_t *ctx, const void *p)
30{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected