mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
multi: fix make lint
Fixes new lint errors caught by the latest version.
This commit is contained in:
@@ -1795,7 +1795,7 @@ func syncNewChannel(tx kvdb.RwTx, c *OpenChannel, addrs []net.Addr) error {
|
||||
// occur. This method its to be called when we revoke our prior commitment
|
||||
// state.
|
||||
//
|
||||
// A map is returned of all the htlc resolutions that were locked in in this
|
||||
// A map is returned of all the htlc resolutions that were locked in this
|
||||
// commitment. Keys correspond to htlc indices and values indicate whether the
|
||||
// htlc was settled or failed.
|
||||
func (c *OpenChannel) UpdateCommitment(newCommitment *ChannelCommitment,
|
||||
|
@@ -1164,7 +1164,6 @@ func (h *HarnessTest) AssertAllTxesSpendFrom(txes []*wire.MsgTx,
|
||||
}
|
||||
|
||||
// AssertTxSpendFrom asserts that a given tx is spent from a previous tx.
|
||||
// tx.
|
||||
func (h *HarnessTest) AssertTxSpendFrom(tx *wire.MsgTx,
|
||||
prevTxid chainhash.Hash) {
|
||||
|
||||
|
@@ -16,8 +16,8 @@ type (
|
||||
AnnResp *peersrpc.NodeAnnouncementUpdateResponse
|
||||
)
|
||||
|
||||
// UpdateNodeAnnouncement makes an UpdateNodeAnnouncement RPC call the the
|
||||
// peersrpc client and asserts.
|
||||
// UpdateNodeAnnouncement makes an UpdateNodeAnnouncement RPC call the peersrpc
|
||||
// client and asserts.
|
||||
func (h *HarnessRPC) UpdateNodeAnnouncement(req AnnReq) AnnResp {
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
defer cancel()
|
||||
@@ -28,7 +28,7 @@ func (h *HarnessRPC) UpdateNodeAnnouncement(req AnnReq) AnnResp {
|
||||
return resp
|
||||
}
|
||||
|
||||
// UpdateNodeAnnouncementErr makes an UpdateNodeAnnouncement RPC call the the
|
||||
// UpdateNodeAnnouncementErr makes an UpdateNodeAnnouncement RPC call the
|
||||
// peersrpc client and asserts an error is returned.
|
||||
func (h *HarnessRPC) UpdateNodeAnnouncementErr(req AnnReq) {
|
||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||
|
@@ -1,7 +1,6 @@
|
||||
package zpay32
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
@@ -39,7 +38,6 @@ func FuzzEncode(f *testing.F) {
|
||||
|
||||
// Initialize the static key we will be using for this fuzz
|
||||
// test.
|
||||
testPrivKeyBytes, _ := hex.DecodeString("e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734") // nolint:lll
|
||||
testPrivKey, _ := btcec.PrivKeyFromBytes(testPrivKeyBytes)
|
||||
|
||||
// Then, initialize the testMessageSigner so we can encode out
|
||||
|
Reference in New Issue
Block a user