lnd+sweep: move DetermineFeePerKw into config

This commit makes `DetermineFeePerKw` configurable on sweeper so it's
easier to write unit tests for it.
This commit is contained in:
yyforyongyu committed 2023-10-13 14:44:20 +08:00
1 parent 939375f1a5
commit 82053970ef
3 files changed
+19 -6

No files matched your search

+1
View File
@@ -149,6 +149,7 @@ func createSweeperTestContext(t *testing.T) *sweeperTestContext {
},
MaxFeeRate: DefaultMaxFeeRate,
FeeRateBucketSize: DefaultFeeRateBucketSize,
DetermineFeePerKw: DetermineFeePerKw,
})
ctx.sweeper.Start()