ethereumclassic / ethereumclassic/explorer

Show mined block & reward as a transaction on explorer

Open
#158 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
263
Forks
249
PR merge metrics
No merged PRs in 30d

Description

Ethereum doesn't have a transaction hash for mining rewards and genesis block allocation since it is not recorded as a transaction, but a state change ( Therefore we can see the balance of mining reward added on account without single transaction )

Therefore etherscan.io displays mining reward as a "mined block", not a part of transaction.

My proposal is to add mining reward logic for miner's account and display them as a separate list on account page.

We can borrow the mining reward logic from https://github.com/sammy007/open-ethereum-pool/blob/master/payouts/unlocker.go and implement them in js.

Tracing the miner's account on eth.getBlock call and calculating the reward on mongo db will help the development

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing payouts/unlocker.go from the linked open-ethereum-pool project and the explorer's eth.getBlock entry point. Check how account-page data is calculated from MongoDB. Done means mining rewards and genesis allocations appear as a separate list on the miner's account page, distinct from transactions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb
Domain
backend, databases, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.