2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00

loopout: fix TestCustomSweepConfTarget

This commit is contained in:
yyforyongyu 2021-04-09 15:14:54 +08:00
parent 4b68fce09a
commit 11758dc388
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -232,6 +232,9 @@ func TestCustomSweepConfTarget(t *testing.T) {
testReq.SweepConfTarget = testLoopOutMinOnChainCltvDelta -
DefaultSweepConfTargetDelta - 1
// Set on-chain HTLC CLTV.
testReq.Expiry = ctx.Lnd.Height + testLoopOutMinOnChainCltvDelta
// Set up custom fee estimates such that the lower confirmation target
// yields a much higher fee rate.
ctx.Lnd.SetFeeEstimate(testReq.SweepConfTarget, 250)