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

Function amount_in_range

closingd/closingd.c:466–471  ·  view source on GitHub ↗

Is this amount in this range? */

Source from the content-addressed store, hash-verified

464
465/* Is this amount in this range? */
466static bool amount_in_range(struct amount_sat amount,
467 const struct tlv_closing_signed_tlvs_fee_range *r)
468{
469 return amount_sat_greater_eq(amount, r->min_fee_satoshis)
470 && amount_sat_less_eq(amount, r->max_fee_satoshis);
471}
472
473/* Figure out what we should offer now. */
474static struct amount_sat

Callers 1

do_quickcloseFunction · 0.85

Calls 2

amount_sat_less_eqFunction · 0.85
amount_sat_greater_eqFunction · 0.50

Tested by

no test coverage detected