mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
common/read_peer_msg: don't try to handle reestablish/reopen.
Let the callers do that (only channeld needs to do this). We temporarily send an error on unknown reestablish in openingd, as this mimic previous behavior and avoids breaking tests (it does leave a BROKEN message in the logs though, so test_funding_external_wallet_corners needs to ignore that for now. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1149,7 +1149,7 @@ def test_funding_by_utxos(node_factory, bitcoind):
|
||||
@pytest.mark.developer("needs dev_forget_channel")
|
||||
@pytest.mark.openchannel('v1')
|
||||
def test_funding_external_wallet_corners(node_factory, bitcoind):
|
||||
l1 = node_factory.get_node(may_reconnect=True)
|
||||
l1 = node_factory.get_node(may_reconnect=True, allow_broken_log=True)
|
||||
l2 = node_factory.get_node(may_reconnect=True)
|
||||
|
||||
amount = 2**24
|
||||
@@ -1242,7 +1242,7 @@ def test_funding_external_wallet_corners(node_factory, bitcoind):
|
||||
|
||||
# on reconnect, channel should get destroyed
|
||||
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
|
||||
l1.daemon.wait_for_log('Rejecting WIRE_CHANNEL_REESTABLISH for unknown channel_id')
|
||||
l1.daemon.wait_for_log('Unexpected message WIRE_CHANNEL_REESTABLISH')
|
||||
wait_for(lambda: len(l1.rpc.listpeers()['peers']) == 0)
|
||||
wait_for(lambda: len(l2.rpc.listpeers()['peers']) == 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user