multi: fix linter errors

This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:34:15 -07:00
1 parent d3e4bca772
commit a2b277cf1d
20 files changed
+187 -144

No files matched your search

-4
View File
@@ -719,7 +719,6 @@ func channelForceClosureTest(ht *lntest.HarnessTest,
// In case of anchors, the timeout txs will be aggregated into one.
if lntest.CommitTypeHasAnchors(channelType) {
expectedTxes = 1
}
@@ -733,7 +732,6 @@ func channelForceClosureTest(ht *lntest.HarnessTest,
// into one.
numInputs := 1
if lntest.CommitTypeHasAnchors(channelType) {
numInputs = numInvoices + 1
}
@@ -845,7 +843,6 @@ func channelForceClosureTest(ht *lntest.HarnessTest,
// For anchor channels thhis is one block earlier.
numBlocks := uint32(defaultCSV - 1)
if lntest.CommitTypeHasAnchors(channelType) {
numBlocks = defaultCSV - 2
}
ht.MineBlocks(numBlocks)
@@ -992,7 +989,6 @@ func channelForceClosureTest(ht *lntest.HarnessTest,
// In addition, if this is an anchor-enabled channel, further add the
// anchor size.
if lntest.CommitTypeHasAnchors(channelType) {
carolExpectedBalance += btcutil.Amount(anchorSize)
}
+4 -3
View File
@@ -102,13 +102,14 @@ func testBasicChannelFunding(ht *lntest.HarnessTest) {
// Dave only supports tweakless, channel will be downgraded to
// this type if Carol supports anchors.
case lnrpc.CommitmentType_STATIC_REMOTE_KEY:
if expType == lnrpc.CommitmentType_ANCHORS {
switch expType {
case lnrpc.CommitmentType_ANCHORS:
expType = lnrpc.CommitmentType_STATIC_REMOTE_KEY
} else if expType == lnrpc.CommitmentType_SIMPLE_TAPROOT {
case lnrpc.CommitmentType_SIMPLE_TAPROOT:
expType = lnrpc.CommitmentType_STATIC_REMOTE_KEY
}
// Dave only supoprts legacy type, channel will be downgraded
// Dave only supports legacy type, channel will be downgraded
// to this type.
case lnrpc.CommitmentType_LEGACY:
expType = lnrpc.CommitmentType_LEGACY
+2 -1
View File
@@ -37,7 +37,8 @@ func breachRetributionTestCase(ht *lntest.HarnessTest,
"Carol",
append(
nodeArgs,
[]string{"--hodl.exit-settle", "--nolisten", "--minbackoff=1h"}...,
[]string{"--hodl.exit-settle", "--nolisten",
"--minbackoff=1h"}...,
),
)