Equibit / explorer

An open source block explorer
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Easily reset explorer when blockchain restarts #35

Open Eternali opened 5 years ago

Eternali commented 5 years ago

Right now the easiest way of doing this is to just trigger a redeploy on IBM cloud. A better way of doing this could either be in the explorer itself (if it finds another block with blockHeight of 1 delete all previous blocks). Or as a script to trigger reindexing.

Eternali commented 5 years ago

So the previous comment wasn't entirely correct so now there is an environment variable you can set to run a reindex whenever the application restarts. This is probably a decent enough solution for the foreseeable future since triggering app restarts are pretty painless.