multi: fix make lint
Fixes new lint errors caught by the latest version.
This commit is contained in:
4 files changed
+4
-7
No files matched your search
@@ -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
|
// occur. This method its to be called when we revoke our prior commitment
|
||||||
// state.
|
// 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
|
// commitment. Keys correspond to htlc indices and values indicate whether the
|
||||||
// htlc was settled or failed.
|
// htlc was settled or failed.
|
||||||
func (c *OpenChannel) UpdateCommitment(newCommitment *ChannelCommitment,
|
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.
|
// AssertTxSpendFrom asserts that a given tx is spent from a previous tx.
|
||||||
// tx.
|
|
||||||
func (h *HarnessTest) AssertTxSpendFrom(tx *wire.MsgTx,
|
func (h *HarnessTest) AssertTxSpendFrom(tx *wire.MsgTx,
|
||||||
prevTxid chainhash.Hash) {
|
prevTxid chainhash.Hash) {
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -16,8 +16,8 @@ type (
|
|||||||
AnnResp *peersrpc.NodeAnnouncementUpdateResponse
|
AnnResp *peersrpc.NodeAnnouncementUpdateResponse
|
||||||
)
|
)
|
||||||
|
|
||||||
// UpdateNodeAnnouncement makes an UpdateNodeAnnouncement RPC call the the
|
// UpdateNodeAnnouncement makes an UpdateNodeAnnouncement RPC call the peersrpc
|
||||||
// peersrpc client and asserts.
|
// client and asserts.
|
||||||
func (h *HarnessRPC) UpdateNodeAnnouncement(req AnnReq) AnnResp {
|
func (h *HarnessRPC) UpdateNodeAnnouncement(req AnnReq) AnnResp {
|
||||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
@@ -28,7 +28,7 @@ func (h *HarnessRPC) UpdateNodeAnnouncement(req AnnReq) AnnResp {
|
|||||||
return resp
|
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.
|
// peersrpc client and asserts an error is returned.
|
||||||
func (h *HarnessRPC) UpdateNodeAnnouncementErr(req AnnReq) {
|
func (h *HarnessRPC) UpdateNodeAnnouncementErr(req AnnReq) {
|
||||||
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
ctxt, cancel := context.WithTimeout(h.runCtx, DefaultTimeout)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package zpay32
|
package zpay32
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/hex"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@@ -39,7 +38,6 @@ func FuzzEncode(f *testing.F) {
|
|||||||
|
|
||||||
// Initialize the static key we will be using for this fuzz
|
// Initialize the static key we will be using for this fuzz
|
||||||
// test.
|
// test.
|
||||||
testPrivKeyBytes, _ := hex.DecodeString("e126f68f7eafcc8b74f54d269fe206be715000f94dac067d1c04a8ca3b2db734") // nolint:lll
|
|
||||||
testPrivKey, _ := btcec.PrivKeyFromBytes(testPrivKeyBytes)
|
testPrivKey, _ := btcec.PrivKeyFromBytes(testPrivKeyBytes)
|
||||||
|
|
||||||
// Then, initialize the testMessageSigner so we can encode out
|
// Then, initialize the testMessageSigner so we can encode out
|
||||||
|
|||||||
Reference in new issue
Block a user