feat(txpool): calculate consumption when committing a new block #3499
Annotations
8 errors
build-linux:
txpool/txpool.go#L161
assignOp: replace `p.consumptionMap[signer] = p.consumptionMap[signer] + uint32(trx.SerializeSize())` with `p.consumptionMap[signer] += uint32(trx.SerializeSize())` (gocritic)
|
build-linux:
txpool/txpool_test.go#L130
commentFormatting: put a space between `//` and comment text (gocritic)
|
build-linux:
state/state.go#L437
sloppyReassign: re-assignment to `err` can be replaced with `err := st.txPool.HandleCommittedBlock(blk)` (gocritic)
|
build-linux:
txpool/txpool_test.go#L110
empty-lines: extra empty line at the end of a block (revive)
|
build-linux:
txpool/interface.go#L26
import-shadowing: The name 'block' shadows an import name (revive)
|
build-linux:
txpool/mock.go#L82
unused-receiver: method receiver 'm' is not referenced in method's body, consider removing or renaming it as _ (revive)
|
build-linux:
txpool/txpool_test.go#L133
unnecessary trailing newline (whitespace)
|
build-linux
Process completed with exit code 2.
|