-
Notifications
You must be signed in to change notification settings - Fork 260
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
bad number of block parsed with blocksci_parser #45
Comments
This has me a bit stumped. It's probably something specific to your configuration since this bug hasn't appeared in other places. I'll whip up some code to dump out more debug output and hopefully get to the bottom of this. The parse occurs in multiple phases. During the "fetching block headers" chunk, the all of the blk.dat files in .bitcoin/blocks are parsed and block headers are extracted from all of them. Then the longest chain is built from the parsed blocks. The bug is likely to be either due to the parser not reading all headers or somehow not being able to construct a longer chain, but I'm not sure why either would be true. |
Ok thank you for your answer. More info... the blocks seems continuously parsed 1 to 499291 because when i execute this python code : this is the output on a jupyter notebook :
The hash Crunchy |
Maybe it can also help you : if i try to update with rpc command it show me the following error message |
I am seeing the exact same behavior using both the update disk variant as well as the update rpc one. The former stops parsing at 235,278 blocks while bitcoin-cli knows about 504,687 blocks. The latter stops with said error.
I'd be happy to provide any debugging help, if possible. |
I found a temporary solution to avoid this issue.
I was able to parse the 504000 blocks and more but in 5 days of download and parse... |
I think this was the same bug as described in #69. This should now be resolved. It was caused by some strangeness in how bitcoin core serializes blocks. Apparently sometimes when bitcoin core is halted it can leave the data in an odd state that I had never run into myself. |
Hi!
Your tools seems very great but i have a problem when i uses the standard blocksci_parser command
blocksci_parser --output-directory bitcoin-data update disk --coin-directory .bitcoin
It seems to parse only 499291 blocks but there is currently 504087 saved by bitcoind on my hdd.
bitcoin-cli getblockcount
504087
I tried to reforce the parse but the number of block didn't increase...
This is the message returned by the parser:
`blocksci_parser --output-directory bitcoin-data update disk --coin-directory .bitcoin
100.0% done fetching block headers
Starting with chain of 499291 blocks
Removing 0 blocks
Adding 0 blocks
Updating hash index
Updating index with scripts of type nonstandard_script
Updating index with scripts of type pubkey_script
Updating index with scripts of type scripthash_script
Updating index with scripts of type multisig_script
Updating index with scripts of type null_data_script
Updating address index
Updating index with scripts of type nonstandard_script
Updating index with scripts of type pubkey_script
Updating index with scripts of type scripthash_script
Updating index with scripts of type multisig_script
Updating index with scripts of type null_data_script`
Have an idea
Thanks in advance
Crunchy
The text was updated successfully, but these errors were encountered: