diff --git a/lightningd/pay.c b/lightningd/pay.c index b633803a2c46..e147f1203a94 100644 --- a/lightningd/pay.c +++ b/lightningd/pay.c @@ -1985,7 +1985,7 @@ static struct command_result *json_injectpaymentonion(struct command *cmd, if (payload->forward_channel) { next = any_channel_by_scid(cmd->ld, *payload->forward_channel, - false); + true); if (!next) return command_fail(cmd, JSONRPC2_INVALID_PARAMS, "Unknown scid %s", diff --git a/tests/test_xpay.py b/tests/test_xpay.py index 8a6be07ef627..bc087182ea39 100644 --- a/tests/test_xpay.py +++ b/tests/test_xpay.py @@ -532,7 +532,6 @@ def test_xpay_maxfee(node_factory, bitcoind, chainparams): assert fee <= maxfee -@pytest.mark.xfail(strict=True) def test_xpay_unannounced(node_factory): l1, l2 = node_factory.line_graph(2, announce_channels=False)