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

Function closing_fee

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

Source from the content-addressed store, hash-verified

469
470
471def closing_fee(feerate, num_outputs):
472 assert num_outputs == 1 or num_outputs == 2
473 # Assumes p2tr outputs
474 weight = 428 + (8 + 1 + 1 + 1 + 32) * 4 * num_outputs
475 return (weight * feerate) // 1000
476
477
478def 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