diff --git a/plugins/libplugin-pay.c b/plugins/libplugin-pay.c index 1e88e873b..3b38378a6 100644 --- a/plugins/libplugin-pay.c +++ b/plugins/libplugin-pay.c @@ -1622,7 +1622,8 @@ local_channel_hints_listpeers(struct command *cmd, const char *buffer, spendsats = json_get_member(buffer, channel, "spendable_msat"); scid = json_get_member(buffer, channel, "short_channel_id"); dir = json_get_member(buffer, channel, "direction"); - assert(spendsats != NULL && scid != NULL && dir != NULL); + if(spendsats == NULL || scid == NULL || dir == NULL) + continue; json_to_bool(buffer, connected, &h.enabled); json_to_short_channel_id(buffer, scid, &h.scid.scid); diff --git a/tests/test_pay.py b/tests/test_pay.py index 5fe7762b9..e41afdfff 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -3157,7 +3157,6 @@ def test_mpp_adaptive(node_factory, bitcoind): pprint(l1.rpc.paystatus(inv)) -@pytest.mark.xfail(strict=True) def test_pay_fail_unconfirmed_channel(node_factory, bitcoind): ''' Replicate #3855.