Test wumbo channel imposition in multifundchannel. l3 not wumbo :(
(node_factory)
| 2059 | @pytest.mark.openchannel('v1') |
| 2060 | @pytest.mark.openchannel('v2') |
| 2061 | def test_multifunding_wumbo(node_factory): |
| 2062 | ''' |
| 2063 | Test wumbo channel imposition in multifundchannel. l3 not wumbo :( |
| 2064 | ''' |
| 2065 | l1, l2, l3 = node_factory.get_nodes(3, opts=[{}, {}, |
| 2066 | {'dev-force-features': '-19'}]) |
| 2067 | |
| 2068 | l1.fundwallet(1 << 26) |
| 2069 | |
| 2070 | # This should fail. |
| 2071 | destinations = [{"id": '{}@localhost:{}'.format(l2.info['id'], l2.port), |
| 2072 | "amount": 50000}, |
| 2073 | {"id": '{}@localhost:{}'.format(l3.info['id'], l3.port), |
| 2074 | "amount": 1 << 24}] |
| 2075 | with pytest.raises(RpcError, match='Amount exceeded'): |
| 2076 | l1.rpc.multifundchannel(destinations) |
| 2077 | |
| 2078 | # Open failure doesn't cause disconnect |
| 2079 | assert only_one(l1.rpc.listpeers(l2.info['id'])['peers'])['connected'] |
| 2080 | |
| 2081 | # This should succeed. |
| 2082 | destinations = [{"id": '{}@localhost:{}'.format(l2.info['id'], l2.port), |
| 2083 | "amount": 1 << 24}, |
| 2084 | {"id": '{}@localhost:{}'.format(l3.info['id'], l3.port), |
| 2085 | "amount": 50000}] |
| 2086 | l1.rpc.multifundchannel(destinations) |
| 2087 | |
| 2088 | |
| 2089 | @unittest.skipIf(TEST_NETWORK == 'liquid-regtest', "Fees on elements are different") |
nothing calls this directly
no test coverage detected