pay: Implement retry in case of final CLTV being too soon for receiver.

Changelog-Fixed: Detect a previously non-permanent error (`final_cltv_too_soon`) that has been merged into a permanent error (`incorrect_or_unknown_payment_details`), and retry that failure case in `pay`.
This commit is contained in:
ZmnSCPxj
2019-12-23 18:38:22 +00:00
committed by Christian Decker
parent 72a24a2bdd
commit a9f0f05eea
2 changed files with 158 additions and 11 deletions

View File

@@ -2746,7 +2746,6 @@ def test_createonion_limits(node_factory):
l1.rpc.createonion(hops=hops, assocdata="BB" * 32)
@pytest.mark.xfail(strict=True)
@unittest.skipIf(not DEVELOPER, "needs use_shadow")
def test_blockheight_disagreement(node_factory, bitcoind, executor):
"""