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

Function closing_fee

tests/utils.py:428–431  ·  view source on GitHub ↗
(feerate, num_outputs)

Source from the content-addressed store, hash-verified

426
427
428def closing_fee(feerate, num_outputs):
429 assert num_outputs == 1 or num_outputs == 2
430 weight = 424 + 124 * num_outputs
431 return (weight * feerate) // 1000
432
433
434def scriptpubkey_addr(scriptpubkey):

Callers 2

test_closing_simpleFunction · 0.90
feerate_forFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_closing_simpleFunction · 0.72
feerate_forFunction · 0.72