mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
itest: fix chanbackup restore flake
Updating the fee of the mock estimator _after_ starting carol turned out to be flaky and could lead to the new fee not being picked up in time for the force close. That lead to carol not cpfp'ing the force closed transaction.
This commit is contained in:
parent
d4068e9892
commit
ea4bb5dc5c
@ -1012,6 +1012,10 @@ func testChanRestoreScenario(t *harnessTest, net *lntest.NetworkHarness,
|
||||
require.Contains(t.t, err.Error(), "cannot close channel with state: ")
|
||||
require.Contains(t.t, err.Error(), "ChanStatusRestored")
|
||||
|
||||
// Increase the fee estimate so that the following force close tx will
|
||||
// be cpfp'ed in case of anchor commitments.
|
||||
net.SetFeeEstimate(30000)
|
||||
|
||||
// Now that we have ensured that the channels restored by the backup are
|
||||
// in the correct state even without the remote peer telling us so,
|
||||
// let's start up Carol again.
|
||||
|
Loading…
Reference in New Issue
Block a user