db: fix up HTLCs which are missing failure information.

We don't save them to the database, so fix things up as we load them.

Next patch will actually save them into the db, and this will become
COMPAT code.

Also: call htlc_in_check() with NULL on db load, as otherwise it aborts
internally.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-10-09 19:24:52 +10:30
parent 77be009354
commit d85251ac6c
3 changed files with 78 additions and 2 deletions

View File

@@ -1376,7 +1376,6 @@ def test_fulfill_incoming_first(node_factory, bitcoind):
l3.daemon.wait_for_log('onchaind complete, forgetting peer')
@pytest.mark.xfail(strict=True)
def test_restart_many_payments(node_factory):
l1 = node_factory.get_node(may_reconnect=True)