Skip to content

feat(txpool): calculate consumption when committing a new block #3499

feat(txpool): calculate consumption when committing a new block

feat(txpool): calculate consumption when committing a new block #3499

Triggered via pull request October 17, 2024 19:29
Status Failure
Total duration 13m 18s
Artifacts

gui.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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.