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

Function set_reserve

openingd/openingd.c:170–174  ·  view source on GitHub ↗

We always set channel_reserve_satoshis to 1%, rounded down. */

Source from the content-addressed store, hash-verified

168
169/* We always set channel_reserve_satoshis to 1%, rounded down. */
170static void set_reserve(struct state *state, const struct amount_sat dust_limit)
171{
172 set_reserve_absolute(state, dust_limit,
173 amount_sat_div(state->funding_sats, 100));
174}
175
176/*~ Handle random messages we might get during opening negotiation, (eg. gossip)
177 * returning the first non-handled one, or NULL if we aborted negotiation. */

Callers 2

funder_channel_startFunction · 0.70
fundee_channelFunction · 0.70

Calls 2

set_reserve_absoluteFunction · 0.85
amount_sat_divFunction · 0.85

Tested by

no test coverage detected