mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: fix fee estimate failure if conf_target=1
The fee estimator fails if conf_target=1. Use conf_target=2 instead. Fix https://github.com/lightninglabs/loop/issues/898
This commit is contained in:
parent
a253b40062
commit
ddeb43d293
2 changed files with 10 additions and 10 deletions
|
|
@ -35,7 +35,7 @@ func (s testSweeper) GetSweepFeeDetails(ctx context.Context,
|
|||
return 0, 0, 0, fmt.Errorf("zero sweepConfTarget")
|
||||
|
||||
case sweepConfTarget == 1:
|
||||
feeRate = 30000
|
||||
return 0, 0, 0, fmt.Errorf("sweepConfTarget is 1")
|
||||
|
||||
case sweepConfTarget == 2:
|
||||
feeRate = 25000
|
||||
|
|
@ -213,8 +213,8 @@ func TestLoopOutSweepFeerateProvider(t *testing.T) {
|
|||
height: 800_999,
|
||||
amount: 1_000_000,
|
||||
protocolVersion: loopdb.ProtocolVersionMuSig2,
|
||||
wantConfTarget: 1,
|
||||
wantFeeRate: 33000,
|
||||
wantConfTarget: 2,
|
||||
wantFeeRate: 27500,
|
||||
},
|
||||
{
|
||||
name: "expired",
|
||||
|
|
@ -222,8 +222,8 @@ func TestLoopOutSweepFeerateProvider(t *testing.T) {
|
|||
height: 801_000,
|
||||
amount: 1_000_000,
|
||||
protocolVersion: loopdb.ProtocolVersionMuSig2,
|
||||
wantConfTarget: 1,
|
||||
wantFeeRate: 33000,
|
||||
wantConfTarget: 2,
|
||||
wantFeeRate: 27500,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue