mimblewimble / grin-explorer

Blockchain explorer for grin
GNU Affero General Public License v3.0
59 stars 53 forks source link

Update for Testnet2 #14

Closed quentinlesceller closed 6 years ago

quentinlesceller commented 6 years ago

Update the explorer for Testnet2. Still need to compute the removed difficulty from total difficulty.

hendi commented 6 years ago

Thank you for the PR!

I don't think changing the 0001_initial.py migration manually is the way to go, I'd like to keep that and simply have Django create a new one: if you update the models.py then manage.py makemigrations blockchain does that automatically for you.

I also think we should keep the difficulty so that we can work with that data later, e.g. query for it or graph it. Thus the importer command should calculate and populate the DB with it.

quentinlesceller commented 6 years ago

Okay I'll open a new PR later today.