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

Function test_closing_negotiation_step_1sat

tests/test_closing.py:453–464  ·  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

451@unittest.skipIf(EXPERIMENTAL_FEATURES, "anchors uses quick-close, not negotiation")
452@unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Different closing fees")
453def test_closing_negotiation_step_1sat(node_factory, bitcoind, chainparams):
454 """Test that the closing fee negotiation step works, 1sat"""
455 opts = {}
456 opts['fee_negotiation_step'] = '1'
457
458 opts['close_initiated_by'] = 'opener'
459 opts['expected_close_fee'] = 20989
460 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
461
462 opts['close_initiated_by'] = 'peer'
463 opts['expected_close_fee'] = 20010
464 closing_negotiation_step(node_factory, bitcoind, chainparams, opts)
465
466
467@unittest.skipIf(EXPERIMENTAL_FEATURES, "anchors uses quick-close, not negotiation")

Callers

nothing calls this directly

Calls 1

closing_negotiation_stepFunction · 0.85

Tested by

no test coverage detected