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

Function fromwire_channel_config

common/channel_config.c:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void fromwire_channel_config(const u8 **ptr, size_t *max,
17 struct channel_config *config)
18{
19 config->dust_limit = fromwire_amount_sat(ptr, max);
20 config->max_htlc_value_in_flight = fromwire_amount_msat(ptr, max);
21 config->channel_reserve = fromwire_amount_sat(ptr, max);
22 config->htlc_minimum = fromwire_amount_msat(ptr, max);
23 config->to_self_delay = fromwire_u16(ptr, max);
24 config->max_accepted_htlcs = fromwire_u16(ptr, max);
25 config->max_dust_htlc_exposure_msat = fromwire_amount_msat(ptr, max);
26}

Callers 1

runFunction · 0.85

Calls 3

fromwire_amount_satFunction · 0.70
fromwire_amount_msatFunction · 0.70
fromwire_u16Function · 0.50

Tested by

no test coverage detected