Enable unconvert linter (#5566)

This commit is contained in:
Håvard Anda Estensen 2022-09-28 16:10:38 +02:00 committed by GitHub
parent f9c9ee5d07
commit 23d21f3b44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ linters:
- gosec
# - forcetypeassert
- prealloc
- unconvert
linters-settings:
gocritic:

View File

@ -381,7 +381,7 @@ func (api *APIImpl) getLogsV3(ctx context.Context, tx kv.Tx, begin, end uint64,
evm := vm.NewEVM(blockCtx, txCtx, ibs, chainConfig, vmConfig)
gp := new(core.GasPool).AddGas(msg.Gas())
ibs.Prepare(txHash, lastBlockHash, int(txIndex))
ibs.Prepare(txHash, lastBlockHash, txIndex)
_, err = core.ApplyMessage(evm, msg, gp, true /* refunds */, false /* gasBailout */)
if err != nil {
return nil, err

View File

@ -306,7 +306,7 @@ func (s *stat23) print(aStats libstate.FilesStats, logger log.Logger) {
totalIdxSize := aStats.IdxSize
logger.Info("Progress", "block", s.blockNum, "blk/s", s.speed, "state files", totalFiles,
"total dat", libcommon.ByteCount(uint64(totalDatSize)), "total idx", libcommon.ByteCount(uint64(totalIdxSize)),
"total dat", libcommon.ByteCount(totalDatSize), "total idx", libcommon.ByteCount(totalIdxSize),
"hit ratio", s.hitMissRatio, "hits+misses", s.hits+s.misses,
"alloc", libcommon.ByteCount(s.mem.Alloc), "sys", libcommon.ByteCount(s.mem.Sys),
)