pay: correctly blame the *next* node on BADONION error.

The node which sent the error is doing so because the following
one sent WIRE_UPDATE_FAIL_MALFORMED_HTLC.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-08 11:23:25 +10:30
committed by Christian Decker
parent f5ced1ddd5
commit 8f8783c0e3
2 changed files with 13 additions and 3 deletions

View File

@@ -1137,7 +1137,6 @@ def test_check_command(node_factory):
sock.close()
@pytest.mark.xfail(strict=True)
def test_bad_onion(node_factory, bitcoind):
"""Test that we get a reasonable error from sendpay when an onion is bad"""
l1, l2, l3, l4 = node_factory.line_graph(4, wait_for_announce=True)