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

Function towire_dstore_channel

plugins/askrene/datastore_wire.c:128–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void towire_dstore_channel(u8 **data,
129 const struct node_id *n1,
130 const struct node_id *n2,
131 struct short_channel_id scid,
132 struct amount_msat capacity)
133{
134 towire_u16(data, DSTORE_CHANNEL);
135 towire_node_id(data, n1);
136 towire_node_id(data, n2);
137 towire_short_channel_id(data, scid);
138 towire_amount_msat(data, capacity);
139}
140
141bool fromwire_dstore_channel_update(const tal_t *ctx,
142 const u8 **cursor, size_t *len,

Callers 1

towire_save_channelFunction · 0.85

Calls 4

towire_short_channel_idFunction · 0.85
towire_u16Function · 0.50
towire_node_idFunction · 0.50
towire_amount_msatFunction · 0.50

Tested by

no test coverage detected