-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mastercored takes 5 days (!) to reindex the blockchain #216
Comments
This issue seems related to the issue #215. |
The v0.0.8 branch (and release) is based on Bitcoin Core 0.9.2~ and the Master Core related logic doesn't have much relevance in this context, so I tend to say: yes, that's to expect. But it's extreme nevertheless. Did you wait 5 days or extrapolated based on the first few thousand blocks? There are basically four mechanisms in place (based on the other thread from you):
In my experience step 3, transaction indexing, with a fully synchronized client, takes about 3-8 hours on a $ 20 Digital Ocean VPS. Assuming step 1-3 are done or you delete all Mastercoin related files (the MP_ folders), the actual Mastercoin related processing is done in 2-5 minutes. I once noticed step 1 (and as consequence 2) at the very beginning are quite slow, but it speeds up later: http://sourceforge.net/p/bitcoin/mailman/message/32701295/ |
Hi, The extrapolation of 5 days I don't think is quite accurate. FYI for re-indexing, the time it takes to index a block is dependent on the size and number of transactions within the block. Recent blocks around 300,000 are large and carry many transactions as the popularity of Bitcoin increases, vs the first Bitcoin blocks that carried few transactions and low difficulty. TL:DR; during a re-index, the first 150,000 to 200,000 blocks are processed within a couple of hours, then blocks start to take longer and longer to reindex the more difficult and populated the block. It's absolutely hardware dependent (a good SSD and CPU will help things along greatly). Also FYI MasterCore takes no additional action during a re-index (starts parsing when re-index is complete) so time to re-index should be identical to Bitcoin Core. Thanks |
Issue
The daemon is run with the below command:
'./mastercored -daemon -datadir=/home/mastercore/.bitcoin -reindex'
Reindexing of 330,000 blocks takes 5 (!!) days
Reindexing of 1018 blocks takes 23 minutes (as see from 'getinfo' snapshot), => reindexing of 330,000 blocks takes 5 days!
What is wrong here?
How to fix it?
Can it help to use better PC?
Thanks,
--- Kosta
The text was updated successfully, but these errors were encountered: