analyseether / ether_sql

A python library to push ethereum blockchain data into an sql database.
http://ether-sql.readthedocs.io
Apache License 2.0
69 stars 22 forks source link

Create rewards table to track miner, uncle and genesis rewards #27

Closed ankitchiplunkar closed 6 years ago

ankitchiplunkar commented 6 years ago

Is your feature request related to a problem? Please describe. If we run ether_sql in parallel, then creating the current_state and current_storage (https://github.com/analyseether/ether_sql/issues/25) would not be possible because these tables are derived one block after the another. This creates a chicken and egg problem when ether_sql runs in parallel since to solve the issue: https://github.com/analyseether/ether_sql/issues/24 we need the current_stateand current_storage tables but to get those tables we need past rewards in the state_diff.

Describe the solution you'd like Proposed rewards schems:


REWARDS = ['block_number',
                   'reward_wei',
                   'fees_wei',
                   'to',
                   'timestamp',
                   'reward_hash',
                   'reward_type']
ankitchiplunkar commented 6 years ago

Similar to issue: https://github.com/analyseether/ether_sql/issues/24