Skip to content

Genesis Block reward is treated as +balance for zeroAddress. #293

@aeharvlee

Description

@aeharvlee

Describe the bug

When running rosetta-cli for Ethereum Roopsten testnet or Mainnet, there was an reconciliation issue for 0x0000000000000000000000000000000000000000.

Error message:
Command Failed: reconciliation failure: inactive reconciliation error for 0x0000000000000000000000000000000000000000 at 10 (computed: 5000000000000000001ETH, live: 1ETH)

Cause

  • At the genesis block, there is a mining reward for 0x0000000000000000000000000000000000000000.
  • And that reward does not applied to on-chain balance of 0x0000000000000000000000000000000000000000.
  • But the problem is: Reconciler handles that genesis reward as +balance for 0x0000000000000000000000000000000000000000, so it triggers the error.

To Reproduce

  • Following this guide is enough to re-produce the problem.

Expected behavior

  • The first genesis block reward must not be calculated +balance for 0x0000000000000000000000000000000000000000 because it is not applied to on-chain state.

Additional context

  • OS: macOS 12.3
  • Go version: go1.17.7 darwin/arm64
  • Source code version of rosetta-cli: 18013bd

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