Skip to content
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

Chain corruption while updating BCH chain #255

Open
ClementPavue opened this issue Mar 25, 2019 · 3 comments
Open

Chain corruption while updating BCH chain #255

ClementPavue opened this issue Mar 25, 2019 · 3 comments
Labels
bitcoin-cash data-corruption not-reproducible We are not able to reproduce the described behavior parser Issue related to the parser
Milestone

Comments

@ClementPavue
Copy link

ClementPavue commented Mar 25, 2019

While updating incrementally the chain I got somehow the following corruption. It seems like the parser failed to store some transactions while updating. I encountered the issue at height 574980. I use the disk to update my DB.

Expected Result

A valid parser folder

Actual Result

100.0% done fetching block headers
terminate called after throwing an instance of 'std::runtime_error'
what(): Block data corrupted. Tx file has 269473839 transaction, but max tx to load is tx 269473892
Aborted

Reproduction Steps

sudo blocksci_parser /data/conf.json update

System Information

BlockSci version: 0.6
Using AMI: no
Total memory:64GB

@maltemoeser maltemoeser added parser Issue related to the parser bitcoin-cash labels Mar 25, 2019
@maltemoeser maltemoeser added this to the v0.6 milestone Mar 25, 2019
@maltemoeser
Copy link
Member

Copying from #256 (comment)

Manage to reproduce the issue here is the log of my code:

I'm 14 blocks late
Beginning BlockChain parsing.
Starting with chain of 575901 blocks
Removing 0 blocks
Adding 8 blocks
Back linking transactions
terminate called after throwing an instance of 'std::runtime_error'
what():  Block data corrupted. Tx file has 269607452 transaction, but max tx to load is tx 269608039
Aborted

My cpp code ask the chain to update if there is more than 6 blocks late at regular interval.

@ClementPavue
Copy link
Author

Whoops sorry mb wrong issue

@maltemoeser
Copy link
Member

The issue does not seem to be related to the particular blocks:

ubuntu@[...] > blocksci_parser bch.json update
100.0% done fetching block headers
Starting with chain of 575901 blocks
Removing 0 blocks
Adding 8 blocks
0.00% done, Block 575902/575909
Back linking transactions

Updating hash index
Updating index with 1529 txes
0.00% done
Updating address index
Updating index with 1529 txes
0.00% done
Updating index with scripts of type multisig_script
0.00% done

@maltemoeser maltemoeser added data-corruption not-reproducible We are not able to reproduce the described behavior labels Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bitcoin-cash data-corruption not-reproducible We are not able to reproduce the described behavior parser Issue related to the parser
Projects
None yet
Development

No branches or pull requests

2 participants