mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
Enable unconvert linter (#5566)
This commit is contained in:
parent
f9c9ee5d07
commit
23d21f3b44
@ -17,6 +17,7 @@ linters:
|
||||
- gosec
|
||||
# - forcetypeassert
|
||||
- prealloc
|
||||
- unconvert
|
||||
|
||||
linters-settings:
|
||||
gocritic:
|
||||
|
@ -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
|
||||
|
@ -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),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user