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

Function test_closing_negotiation_step_30pct

tests/test_closing.py:446–457  ·  view source on GitHub ↗

Test that the closing fee negotiation step works, 30%

(node_factory, bitcoind, chainparams)

Source from the content-addressed store, hash-verified

444
445@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Different closing fees")
446def test_closing_negotiation_step_30pct(node_factory, bitcoind, chainparams):
447 """Test that the closing fee negotiation step works, 30%"""
448 opts = {}
449 opts['fee_negotiation_step'] = '30%'
450
451 opts['close_initiated_by'] = 'opener'
452 opts['expected_close_fee'] = 20537
453 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
454
455 opts['close_initiated_by'] = 'peer'
456 opts['expected_close_fee'] = 20233
457 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
458
459
460@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Different closing fees")

Callers

nothing calls this directly

Calls 1

closing_negotiation_stepFunction · 0.85

Tested by

no test coverage detected