mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-30 19:24:21 +01:00
delforward: allow deletion of "unknown in_htlc_id" and fix autoclean to use it.
Note the caveats: we will delete *all* of them at once! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -507,3 +507,10 @@ def test_db_forward_migrate(bitcoind, node_factory):
|
||||
|
||||
assert l1.rpc.getinfo()['fees_collected_msat'] == 4
|
||||
assert len(l1.rpc.listforwards()['forwards']) == 4
|
||||
|
||||
# Make sure autoclean can handle these!
|
||||
l1.stop()
|
||||
l1.daemon.opts['autoclean-succeededforwards-age'] = 2
|
||||
l1.daemon.opts['autoclean-cycle'] = 1
|
||||
l1.start()
|
||||
wait_for(lambda: l1.rpc.listforwards()['forwards'] == [])
|
||||
|
||||
Reference in New Issue
Block a user