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

Function test_closing_negotiation_step_1sat

tests/test_closing.py:481–492  ·  view source on GitHub ↗

Test that the closing fee negotiation step works, 1sat

(node_factory, bitcoind, chainparams)

Source from the content-addressed store, hash-verified

479
480@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Different closing fees")
481def test_closing_negotiation_step_1sat(node_factory, bitcoind, chainparams):
482 """Test that the closing fee negotiation step works, 1sat"""
483 opts = {}
484 opts['fee_negotiation_step'] = '1'
485
486 opts['close_initiated_by'] = 'opener'
487 opts['expected_close_fee'] = 20989
488 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
489
490 opts['close_initiated_by'] = 'peer'
491 opts['expected_close_fee'] = 20010
492 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
493
494
495@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