mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
lightningd: don't consider AWAITING_UNILATERAL to be "active".
It's not active: we don't want to connect. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -467,6 +467,7 @@ static inline bool channel_active(const struct channel *channel)
|
|||||||
{
|
{
|
||||||
return channel->state != FUNDING_SPEND_SEEN
|
return channel->state != FUNDING_SPEND_SEEN
|
||||||
&& channel->state != CLOSINGD_COMPLETE
|
&& channel->state != CLOSINGD_COMPLETE
|
||||||
|
&& channel->state != AWAITING_UNILATERAL
|
||||||
&& !channel_unsaved(channel)
|
&& !channel_unsaved(channel)
|
||||||
&& !channel_on_chain(channel);
|
&& !channel_on_chain(channel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4138,7 +4138,6 @@ def test_mutual_reconnect_race(node_factory, executor, bitcoind):
|
|||||||
l1.rpc.pay(inv['bolt11'])
|
l1.rpc.pay(inv['bolt11'])
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail(strict=True, reason="Still connects when AWAITING_UNILATERAL")
|
|
||||||
def test_no_reconnect_awating_unilateral(node_factory, bitcoind):
|
def test_no_reconnect_awating_unilateral(node_factory, bitcoind):
|
||||||
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True})
|
l1, l2 = node_factory.line_graph(2, opts={'may_reconnect': True})
|
||||||
l2.stop()
|
l2.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user