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

Error in lib/blocks.py#generate_consensus_hash on 32 bit linux. #354

Closed
Ignat99 opened this issue Oct 20, 2014 · 3 comments
Closed

Error in lib/blocks.py#generate_consensus_hash on 32 bit linux. #354

Ignat99 opened this issue Oct 20, 2014 · 3 comments

Comments

@Ignat99
Copy link
Contributor

Ignat99 commented Oct 20, 2014

Why, if the error in the data, drops the application itself and stop work of service?

uname -a

Linux zo1.novalocal 3.8.0-19-generic # 29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

In develop branch:

home/xcp/counterpartyd_build/dist/counterpartyd$ sudo python3.4m ./counterpartyd.py --data-dir=/home/xcp/.config/counterpartyd-testnet --config-file=/home/xcp/.config/counterpartyd-testnet/counterpartyd.conf server --force
[sudo] password for fiware:
config.BACKEND_RPC_PORT: 18332

config.RPC_PORT: 14000

config.RPC_PORT: 14000

Status: Connecting to database.
Status: Running v9.45.0 of counterpartyd.
Port: 14000, Address: localhost
Status: Connecting to backend.
Status: Resuming parsing.
Status: Blockchain reorganisation at block 302404.
Status: Reparsing all transactions.
Traceback (most recent call last):
File "./counterpartyd.py", line 1134, in
blocks.follow(db)
File "/home/xcp/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 1326, in follow
reparse(db, block_index=c-1, quiet=True)
File "/home/xcp/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 1187, in reparse
previous_txlist_hash, block['txlist_hash'])
File "/home/xcp/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 173, in parse_block
ledger_hash = generate_ledger_hash(db, block_index, previous_ledger_hash, current_ledger_hash)
File "/home/xcp/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 144, in generate_ledger_hash
ledger_hash = generate_consensus_hash(db, block_index, 'ledger_hash', util.BLOCK_LEDGER, 0, previous_hash, current_hash)
File "/home/xcp/counterpartyd_build/dist/counterpartyd/lib/blocks.py", line 134, in generate_consensus_hash
raise exceptions.ConsensusError('Incorrect {} for block {}.'.format(field, block_index))
lib.exceptions.ConsensusError: Incorrect ledger_hash for block 302335.

@ouziel-slama
Copy link
Contributor

Can you please send me by email the database file ([email protected]) ?

@Ignat99
Copy link
Contributor Author

Ignat99 commented Oct 20, 2014

CounterpartyXCP/counterblock#68

I also thought that the problem is in the database, so I rebuild it yesterday. At the same time received an additional error. Perhaps the fact of the python's modules. I think to make the installer, which build packages for python's source from GitHab.

@adamkrellenstein
Copy link
Member

@Ignat99, it's very important that the application only run if it's sure that the data are correct, because otherwise someone could theoretically execute a double-spend against you.

@Ignat99 Ignat99 closed this as completed Oct 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants