multi: increase min cltv delta to 24
This commit is contained in:
1 parent
4bce4ebe03
commit
3fb59b1b6b
7 files changed
+13
-13
No files matched your search
@@ -295,7 +295,7 @@ func testUpdateChannelPolicy(ht *lntest.HarnessTest) {
|
||||
// propagated.
|
||||
baseFee = int64(800)
|
||||
feeRate = int64(123)
|
||||
timeLockDelta = uint32(22)
|
||||
timeLockDelta = uint32(24)
|
||||
maxHtlc *= 2
|
||||
inboundBaseFee := int32(-400)
|
||||
inboundFeeRatePpm := int32(-60)
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
finalCltvDelta = routing.MinCLTVDelta // 18.
|
||||
thawHeightDelta = finalCltvDelta * 2 // 36.
|
||||
finalCltvDelta = routing.MinCLTVDelta // 24.
|
||||
thawHeightDelta = finalCltvDelta * 2 // 48.
|
||||
)
|
||||
|
||||
// makeRouteHints creates a route hints that will allow Carol to be reached
|
||||
|
||||
@@ -352,7 +352,7 @@ func (b *blindedForwardTest) setupNetwork(ctx context.Context,
|
||||
withInterceptor bool) {
|
||||
|
||||
carolArgs := []string{
|
||||
"--bitcoin.timelockdelta=18",
|
||||
"--bitcoin.timelockdelta=24",
|
||||
fmt.Sprintf("--bitcoin.defaultremotedelay=%v", toLocalCSV),
|
||||
}
|
||||
if withInterceptor {
|
||||
@@ -360,7 +360,7 @@ func (b *blindedForwardTest) setupNetwork(ctx context.Context,
|
||||
}
|
||||
|
||||
daveArgs := []string{
|
||||
"--bitcoin.timelockdelta=18",
|
||||
"--bitcoin.timelockdelta=24",
|
||||
fmt.Sprintf("--bitcoin.defaultremotedelay=%v", toLocalCSV),
|
||||
}
|
||||
cfgs := [][]string{nil, nil, carolArgs, daveArgs}
|
||||
|
||||
@@ -879,7 +879,7 @@ func testSweepHTLCs(ht *lntest.HarnessTest) {
|
||||
// Before we mine empty blocks to check the RBF behavior, we need to be
|
||||
// aware that Bob's incoming HTLC will expire before his outgoing HTLC
|
||||
// deadline is reached. This happens because the incoming HTLC is sent
|
||||
// onchain at CLTVDelta-BroadcastDelta=18-10=8, which means after 8
|
||||
// onchain at CLTVDelta-BroadcastDelta=24-16=8, which means after 8
|
||||
// blocks are mined, we expect Bob force closes the channel Alice->Bob.
|
||||
blocksTillIncomingSweep := cltvDelta -
|
||||
lncfg.DefaultIncomingBroadcastDelta
|
||||
|
||||
Reference in new issue
Block a user