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

Function set_reserve

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

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

Source from the content-addressed store, hash-verified

172
173/* We always set channel_reserve_satoshis to 1%, rounded down. */
174static void set_reserve(struct state *state, const struct amount_sat dust_limit)
175{
176 set_reserve_absolute(state, dust_limit,
177 amount_sat_div(state->funding_sats, 100));
178}
179
180/*~ Handle random messages we might get during opening negotiation, (eg. gossip)
181 * 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