lightningd: fix handling of WIRE_UPDATE_FAIL_MALFORMED_HTLC.

1. We asserted that there wouldn't be a raw failcode.
2. We didn't pass the failure information via JSON in this case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-01-23 16:19:42 +10:30
committed by Christian Decker
parent c11212bb52
commit bfcef9002e
2 changed files with 33 additions and 3 deletions

View File

@@ -1591,7 +1591,6 @@ def test_bad_onion(node_factory, bitcoind):
assert err.value.error['data']['erring_channel'] == route[1]['channel']
@pytest.mark.xfail(strict=True)
@unittest.skipIf(not DEVELOPER, "Needs DEVELOPER=1 to force onion fail")
def test_bad_onion_immediate_peer(node_factory, bitcoind):
"""Test that we handle the malformed msg when we're the origin"""