diff --git a/lightningd/dual_open_control.c b/lightningd/dual_open_control.c index d7620dfce..d8ac12643 100644 --- a/lightningd/dual_open_control.c +++ b/lightningd/dual_open_control.c @@ -120,6 +120,11 @@ void json_add_unsaved_channel(struct json_stream *response, if (!channel->open_attempt) return; + /* If we're calling out to connectd to activate peer to start the + * process, this will be NULL */ + if (!channel->owner) + return; + oa = channel->open_attempt; json_object_start(response, NULL); diff --git a/tests/test_connection.py b/tests/test_connection.py index 0351f1dd1..537b9ec3c 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1798,7 +1798,7 @@ def test_multifunding_simple(node_factory, bitcoind): l1.rpc.pay(inv) -@pytest.mark.xfail(strict=True) +@pytest.mark.openchannel('v1') @pytest.mark.openchannel('v2') def test_listpeers_crash(node_factory, bitcoind, executor): '''