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

Function test_closing_minfee

tests/test_closing.py:4426–4434  ·  view source on GitHub ↗
(node_factory, bitcoind)

Source from the content-addressed store, hash-verified

4424
4425@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd does not provide feerates on regtest')
4426def test_closing_minfee(node_factory, bitcoind):
4427 l1, l2 = node_factory.line_graph(2, opts={'feerates': None})
4428
4429 l1.rpc.xpay(l2.rpc.invoice(10000000, 'test', 'test')['bolt11'])
4430
4431 wait_for(lambda: only_one(l1.rpc.listpeerchannels()['channels'])['htlcs'] == [])
4432
4433 txid = only_one(l1.rpc.close(l2.info['id'])['txids'])
4434 bitcoind.generate_block(1, wait_for_mempool=txid)
4435
4436
4437@unittest.skipIf(TEST_NETWORK != 'regtest', 'elementsd anchors not supportd')

Callers

nothing calls this directly

Calls 8

wait_forFunction · 0.90
only_oneFunction · 0.90
line_graphMethod · 0.80
listpeerchannelsMethod · 0.80
generate_blockMethod · 0.80
xpayMethod · 0.45
invoiceMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected