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

New cli command follow_chain #53

Open ankitchiplunkar opened 6 years ago

ankitchiplunkar commented 6 years ago

Is your feature request related to a problem? Please describe. Currently, scraping_blocks and following the head of the chain are divided into two different problems. I want to create a single CLI command which performs both the operations together with a queue.

Describe the solution you'd like ether_sql --settings=YourSettings follow_head The above command should:

  1. Start a set of celery workers to push data from node to sql
  2. Check for missing blocks between the psql and the node push them into the queue
  3. Start the new_block_filter after the queue blocks and start the schedule queue to take tasks of searching for new blocks.