-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to batch update missing blockindex ? #278
Comments
You could edit either the Benchmark or the Sync to modify the start and stop areas to a hard coded blockindices you need. For example (not tested code) say that you need blocks 8000 until 8888 Lines 171 to 178 in 30f91a0
modify to something like
Modify as needed. Keep in mind what coinstats.last and coinstats.count shows in mongo, as I think these will get modified by the sync.js during its running. |
Thank you @uaktags , My temp solution is :
|
check mode is the following Make sure you make a mongo backup first just to be safe (of course). |
Another idea may be to use bash:
so that you can run it with
That will do a curl out to your explorer (presuming 127.0.0.1:3001) from block 8000 to 8888. It's a stupid script, and i'd recommend it in a separate ssh window or a separate "screen" because I'm just too lazy to look up curl's output redirect to hide all the html sourcecode that'll be returned. |
I think the bash can't run because the url: /block/ only accept the blockhash. |
hmm, /block/:number should work just fine, atleast it does for me, but if i'm being honest, i have ran a vanilla Iquidus in a long time so perhaps i am mistaken. Let me know how the sync.js works out, and if that fails for whatever reason, I'll look into typing something up more thoroughly for you. |
Hi,
|
Hi Tim, |
Hi all,
I've got a problem while deploy an explorer site for a dead coin, they need to build for swap process.
My explorer's updated to the latest block. But I find some missing blocks between block #1 and latest blocks ( about 8000 blockindex doesn't exist in my explorer database , Just export all the blockindex from db: mongoexport -d databasename -c txes -f blockindex --query '{ blockindex:{$gte:0}}' -o /root/all-blocks.json , then listed all missing blocks ).
The blockindex will be updated one by one when I find that blockindex from search function.
Is there any solution to batch update missing blockindex
Thanks.
The text was updated successfully, but these errors were encountered: