lnd+sweep: remove unused NextAttemptDeltaFunc

This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:23 +08:00
1 parent 5496d02b27
commit b5e4384e24
3 files changed
+15 -33

No files matched your search

+2 -6
View File
@@ -149,12 +149,8 @@ func createSweeperTestContext(t *testing.T) *sweeperTestContext {
FeeEstimator: estimator,
MaxInputsPerTx: testMaxInputsPerTx,
MaxSweepAttempts: testMaxSweepAttempts,
NextAttemptDeltaFunc: func(attempts int) int32 {
// Use delta func without random factor.
return 1 << uint(attempts-1)
},
MaxFeeRate: DefaultMaxFeeRate,
Aggregator: aggregator,
MaxFeeRate: DefaultMaxFeeRate,
Aggregator: aggregator,
})
ctx.sweeper.Start()