multi: fix linter warnings
This commit is contained in:
11 files changed
+122
-106
No files matched your search
@@ -373,7 +373,9 @@ func testVectors(t *testing.T, chanType channeldb.ChannelType, test testCase) {
|
||||
|
||||
require.Equal(
|
||||
t, test.RemoteSigHex,
|
||||
hex.EncodeToString(remoteNewCommit.CommitSig.ToSignatureBytes()),
|
||||
hex.EncodeToString(
|
||||
remoteNewCommit.CommitSig.ToSignatureBytes(),
|
||||
),
|
||||
)
|
||||
|
||||
for i, sig := range remoteNewCommit.HtlcSigs {
|
||||
@@ -398,8 +400,10 @@ func testVectors(t *testing.T, chanType channeldb.ChannelType, test testCase) {
|
||||
var txBytes bytes.Buffer
|
||||
require.NoError(t, forceCloseSum.CloseTx.Serialize(&txBytes))
|
||||
|
||||
require.Equal(t, test.ExpectedCommitmentTxHex,
|
||||
hex.EncodeToString(txBytes.Bytes()))
|
||||
require.Equal(
|
||||
t, test.ExpectedCommitmentTxHex,
|
||||
hex.EncodeToString(txBytes.Bytes()),
|
||||
)
|
||||
|
||||
// Obtain the second level transactions that the local node's channel
|
||||
// state machine has produced. Store them in a map indexed by commit tx
|
||||
|
||||
Reference in new issue
Block a user