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

Function basic_fee

tests/utils.py:462–468  ·  view source on GitHub ↗
(feerate, anchor_expected)

Source from the content-addressed store, hash-verified

460
461
462def basic_fee(feerate, anchor_expected):
463 if anchor_expected:
464 # option_anchor_outputs
465 weight = 1124
466 else:
467 weight = 724
468 return (weight * feerate) // 1000
469
470
471def closing_fee(feerate, num_outputs):

Callers 1

Calls

no outgoing calls

Tested by 1