coinbase / coinbase/mesh-cli

Genesis Block reward is treated as +balance for zeroAddress.

Open
#293 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
165
Forks
99
PR merge metrics
No merged PRs in 30d

Description

**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](https://github.com/coinbase/rosetta-ethereum#testnetonline) 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: https://github.com/coinbase/rosetta-cli/commit/18013bd2628aa98d9cde87e5d10b3216c35d070c

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.