Skip to content

nonce changed is not reverted in journal if fail due to insufficient balance #2803

@gftea

Description

@gftea

Problem

In pre_execution.rs, between L144 nad L181

  1. The nonce is incremented by not recorded in journal
    https://github.com/bluealloy/revm/blob/main/crates/handler/src/pre_execution.rs#L144

  2. Before record the nonce changed in journal, if any error return between, the nonce will not be reverted because journal has no record of nonce change.
    https://github.com/bluealloy/revm/blob/main/crates/handler/src/pre_execution.rs#L181

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions