|
|
|
@ -97,7 +97,7 @@ func TestAutoLoopEnabled(t *testing.T) {
|
|
|
|
|
params = Parameters{
|
|
|
|
|
Autoloop: true,
|
|
|
|
|
AutoFeeBudget: 40066,
|
|
|
|
|
AutoFeeStartDate: testTime,
|
|
|
|
|
AutoFeeRefreshPeriod: testBudgetRefresh,
|
|
|
|
|
MaxAutoInFlight: 2,
|
|
|
|
|
FailureBackOff: time.Hour,
|
|
|
|
|
SweepConfTarget: 10,
|
|
|
|
@ -112,6 +112,7 @@ func TestAutoLoopEnabled(t *testing.T) {
|
|
|
|
|
HtlcConfTarget: defaultHtlcConfTarget,
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
c := newAutoloopTestCtx(t, params, channels, testRestrictions)
|
|
|
|
|
c.start()
|
|
|
|
|
|
|
|
|
@ -338,7 +339,7 @@ func TestAutoloopAddress(t *testing.T) {
|
|
|
|
|
Autoloop: true,
|
|
|
|
|
AutoFeeBudget: 40066,
|
|
|
|
|
DestAddr: addr,
|
|
|
|
|
AutoFeeStartDate: testTime,
|
|
|
|
|
AutoFeeRefreshPeriod: testBudgetRefresh,
|
|
|
|
|
MaxAutoInFlight: 2,
|
|
|
|
|
FailureBackOff: time.Hour,
|
|
|
|
|
SweepConfTarget: 10,
|
|
|
|
@ -493,7 +494,7 @@ func TestCompositeRules(t *testing.T) {
|
|
|
|
|
),
|
|
|
|
|
Autoloop: true,
|
|
|
|
|
AutoFeeBudget: 100000,
|
|
|
|
|
AutoFeeStartDate: testTime,
|
|
|
|
|
AutoFeeRefreshPeriod: testBudgetRefresh,
|
|
|
|
|
MaxAutoInFlight: 2,
|
|
|
|
|
FailureBackOff: time.Hour,
|
|
|
|
|
SweepConfTarget: 10,
|
|
|
|
@ -672,7 +673,7 @@ func TestAutoLoopInEnabled(t *testing.T) {
|
|
|
|
|
params = Parameters{
|
|
|
|
|
Autoloop: true,
|
|
|
|
|
AutoFeeBudget: peer1MaxFee + peer2MaxFee + 1,
|
|
|
|
|
AutoFeeStartDate: testTime,
|
|
|
|
|
AutoFeeRefreshPeriod: testBudgetRefresh,
|
|
|
|
|
MaxAutoInFlight: 2,
|
|
|
|
|
FailureBackOff: time.Hour,
|
|
|
|
|
FeeLimit: NewFeePortion(swapFeePPM),
|
|
|
|
@ -855,7 +856,7 @@ func TestAutoloopBothTypes(t *testing.T) {
|
|
|
|
|
params = Parameters{
|
|
|
|
|
Autoloop: true,
|
|
|
|
|
AutoFeeBudget: loopOutMaxFee + loopInMaxFee + 1,
|
|
|
|
|
AutoFeeStartDate: testTime,
|
|
|
|
|
AutoFeeRefreshPeriod: testBudgetRefresh,
|
|
|
|
|
MaxAutoInFlight: 2,
|
|
|
|
|
FailureBackOff: time.Hour,
|
|
|
|
|
FeeLimit: NewFeePortion(swapFeePPM),
|
|
|
|
|