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

create-address-db.py Unrecognised Block Protocol for Bitcoin Core #535

Open
gernotpokorny opened this issue Dec 16, 2024 · 6 comments
Open

Comments

@gernotpokorny
Copy link

gernotpokorny commented Dec 16, 2024

Describe the bug
I run Bitcoin Core 28.0.0 and installed all dependencies for btcrecover. Recovering a seed works, but creating the addresses.db does not work. I always get

(python3-venv) invader@invader:~/Documents/btcrecover-1.12.0$ python3 ./create-address-db.py --blocks-startdate "2024-01-01" --dbfilename "adresses.db" --force
Starting CreateAddressDB 1.11.0-CryptoGuide
2024-12-16 21:41:57 : Creating Address Database with room for 1610612736 addresses
Started Timestamp     Block file       Address Count     Last Block DateTime
-------------------   ------------     -------------     -------------------
2024-12-16 21:41:57    blk00000.dat Unrecognised Block Protocol (Unrecognised Magic), Found: b'\xde\x10v\xb9'  You can force an AddressDB creation attempt by re-running this tool with the flag --dbyolo

--dbyolo also does not help.

Bitcoin Core works absolutely fine, no issues there. I do not understand currently what the issue is, why by default Bitcoin Core is not supported?

When I download blocks manually and use --inputlist it also works fine. I don't think that there is something wrong with this Bitcoin Core install, I verified it. Do I need to use an older version of Bitcoin Core?

To Reproduce

  1. Install Bitcoin Core 28.0.0 and sync it
  2. Simply follow the docs and execute the above command

Expected behavior
There should be no error

Desktop (please complete the following information):

  • OS: Ubuntu 24.04.1 LTS

edit: with the bitcoin-core snap it is actually working. Maybe really a unsupported version issue of 28.0.0?

@3rdIteration
Copy link
Owner

3rdIteration commented Dec 16, 2024

Works fine here. It looks like the version you originally tried has done something like enable the new XOR for the blockdir by default or something similar. (Which breaks everything for external programs to access the data)

See here: bitcoin/bitcoin#28052

@gernotpokorny
Copy link
Author

weird, then I'll give it another try. Thank you very much.

@3rdIteration
Copy link
Owner

I would be curious to see the config file for the system where it isn't working

@gernotpokorny
Copy link
Author

I am sorry, I have already reinstalled the OS :|

@3rdIteration
Copy link
Owner

No worries, it's a good heads up for others who may have a similar issue

@gernotpokorny
Copy link
Author

If I still had the config file, I would make it available :/

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

2 participants