From f6dd33e3f4bb233e9ae3e858950fd96e01dbca01 Mon Sep 17 00:00:00 2001
From: Igor Mandrigin <i@mandrigin.ru>
Date: Thu, 18 Mar 2021 11:58:19 +0100
Subject: [PATCH] lint passes

---
 core/chain_makers.go      | 2 +-
 core/types/receipt.go     | 2 +-
 eth/protocols/eth/peer.go | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/core/chain_makers.go b/core/chain_makers.go
index 6da6cb9110..4033fb77bc 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -191,7 +191,7 @@ func (b *BlockGen) GetReceipts() []*types.Receipt {
 }
 
 // makeBlockChain creates a deterministic chain of blocks rooted at parent.
-func makeBlockChain(parent *types.Block, n int, engine consensus.Engine, db *ethdb.ObjectDatabase, seed int) []*types.Block { //nonlint:unused
+func makeBlockChain(parent *types.Block, n int, engine consensus.Engine, db *ethdb.ObjectDatabase, seed int) []*types.Block { //nolint:unused
 	blocks, _, _ := GenerateChain(params.TestChainConfig, parent, engine, db, n, func(i int, b *BlockGen) {
 		b.SetCoinbase(common.Address{0: byte(seed), 19: byte(i)})
 	}, false /*intermediate hashes*/)
diff --git a/core/types/receipt.go b/core/types/receipt.go
index 4e0f47052f..cab7ff08c2 100644
--- a/core/types/receipt.go
+++ b/core/types/receipt.go
@@ -343,7 +343,7 @@ func (rs Receipts) EncodeIndex(i int, w *bytes.Buffer) {
 			panic(err)
 		}
 	case AccessListTxType:
-		//nolint::errcheck
+		//nolint:errcheck
 		w.WriteByte(AccessListTxType)
 		if err := rlp.Encode(w, data); err != nil {
 			panic(err)
diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go
index 77037553f3..043642a5b9 100644
--- a/eth/protocols/eth/peer.go
+++ b/eth/protocols/eth/peer.go
@@ -477,7 +477,7 @@ func (p *Peer) RequestBodies(hashes []common.Hash) error {
 	p.Log().Debug("Fetching batch of block bodies", "count", len(hashes))
 	if p.Version() >= ETH66 {
 		return p2p.Send(p.rw, GetBlockBodiesMsg, &GetBlockBodiesPacket66{
-			RequestId:            rand.Uint64(),
+			RequestId:            rand.Uint64(), //nolint:gosec
 			GetBlockBodiesPacket: hashes,
 		})
 	}
@@ -490,7 +490,7 @@ func (p *Peer) RequestNodeData(hashes []common.Hash) error {
 	p.Log().Debug("Fetching batch of state data", "count", len(hashes))
 	if p.Version() >= ETH66 {
 		return p2p.Send(p.rw, GetNodeDataMsg, &GetNodeDataPacket66{
-			RequestId:         rand.Uint64(),
+			RequestId:         rand.Uint64(), //nolint:gosec
 			GetNodeDataPacket: hashes,
 		})
 	}
@@ -502,7 +502,7 @@ func (p *Peer) RequestReceipts(hashes []common.Hash) error {
 	p.Log().Debug("Fetching batch of receipts", "count", len(hashes))
 	if p.Version() >= ETH66 {
 		return p2p.Send(p.rw, GetReceiptsMsg, &GetReceiptsPacket66{
-			RequestId:         rand.Uint64(),
+			RequestId:         rand.Uint64(), //nolint:gosec
 			GetReceiptsPacket: hashes,
 		})
 	}
@@ -514,7 +514,7 @@ func (p *Peer) RequestTxs(hashes []common.Hash) error {
 	p.Log().Debug("Fetching batch of transactions", "count", len(hashes))
 	if p.Version() >= ETH66 {
 		return p2p.Send(p.rw, GetPooledTransactionsMsg, &GetPooledTransactionsPacket66{
-			RequestId:                   rand.Uint64(),
+			RequestId:                   rand.Uint64(), //nolint:gosec
 			GetPooledTransactionsPacket: hashes,
 		})
 	}
-- 
GitLab