(node_factory)
| 563 | @pytest.mark.openchannel('v1') |
| 564 | @pytest.mark.openchannel('v2') |
| 565 | def test_disconnect_half_signed(node_factory): |
| 566 | # Now, these are the corner cases. Fundee sends funding_signed, |
| 567 | # but opener doesn't receive it. |
| 568 | disconnects = ['-WIRE_FUNDING_SIGNED'] |
| 569 | if EXPERIMENTAL_DUAL_FUND: |
| 570 | disconnects = ['-WIRE_COMMITMENT_SIGNED'] |
| 571 | l1 = node_factory.get_node() |
| 572 | l2 = node_factory.get_node(disconnect=disconnects) |
| 573 | |
| 574 | l1.fundwallet(2000000) |
| 575 | |
| 576 | l1.rpc.connect(l2.info['id'], 'localhost', l2.port) |
| 577 | with pytest.raises(RpcError): |
| 578 | l1.rpc.fundchannel(l2.info['id'], 25000) |
| 579 | |
| 580 | # Peer remembers, opener doesn't. |
| 581 | wait_for(lambda: l1.rpc.listpeers(l2.info['id'])['peers'] == []) |
| 582 | assert len(only_one(l2.rpc.listpeers(l1.info['id'])['peers'])['channels']) == 1 |
| 583 | |
| 584 | |
| 585 | @pytest.mark.developer |
nothing calls this directly
no test coverage detected