Skip to content

in worker.commitTransaction should also revert the gas pool when err is not nil and the TX is not added to the state #26791

@krasi-georgiev

Description

@krasi-georgiev

https://github.com/ethereum/go-ethereum/blob/master/miner/worker.go#L863-L875

for example in this code the when core.ApplyTransaction returns an error the pool will be reduced where in fact the tx is not added to the state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions