diff --git a/core/chain_makers.go b/core/chain_makers.go index 6da6cb9110061587136c1e8254b8817e84e6fd5f..4033fb77bcb176a96c20058c0b29dd88e6b8a638 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 4e0f47052f58c203482b7fce509386af8bf8d0af..cab7ff08c2d2f54c76d605cf8f6723ddd5b900ef 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 77037553f380b8f3ec49beb6c862885a23430989..043642a5b9c705acee38aca9066043e37892628c 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, }) }