openingd/: Fail fundchannel_start if we already are, or will become, the fundee.

Fixes: #4108

Changelog-Fixed: Network: Fixed a race condition when us and a peer attempt to make channels to each other at nearly the same time.
This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-10-08 16:01:09 +08:00
committed by ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent 712e0796fc
commit 0fd87b85da
4 changed files with 55 additions and 2 deletions

View File

@@ -2761,7 +2761,6 @@ def test_channel_opener(node_factory):
assert(l2.rpc.listpeers()['peers'][0]['channels'][0]['closer'] == 'remote')
@pytest.mark.xfail(strict=True)
def test_fundchannel_start_alternate(node_factory, executor):
''' Test to see what happens if two nodes start channeling to
each other alternately.