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

Function amount_in_range

closingd/closingd.c:484–489  ·  view source on GitHub ↗

Is this amount in this range? */

Source from the content-addressed store, hash-verified

482
483/* Is this amount in this range? */
484static bool amount_in_range(struct amount_sat amount,
485 const struct tlv_closing_signed_tlvs_fee_range *r)
486{
487 return amount_sat_greater_eq(amount, r->min_fee_satoshis)
488 && amount_sat_less_eq(amount, r->max_fee_satoshis);
489}
490
491/* Figure out what we should offer now. */
492static 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