-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add libbitcoinconsensus to the project as resource #13
Comments
I see this PR as being about two things, but we can create a separate PR if you want to split it up. #1 - Automating the process of loading in the library binaries I'm actually more interested in #1 at the present because I want to use this project to test various binaries. I was thinking the next step would be to replace the download and verify code you have in the |
It would also be nice to be able to download the test JSON files that match the version of the lib we're testing. |
Sorry, can you please clarify? If the library is locally installed, then it should be available without providing an explicit path. But I assume you were referring to something else?
I agree! It looks like there are different sets of tests for different versions, and for example the current test set fails with 0.13 libbitcoinconsensus, as far as I can see. |
My idea is to add the rough equivalent of what your
I'm wondering if we should update the default (checked-in) tests to match the latest (released?) version of Bitcoin Core... |
Ah gotcha, so you want to download the library files via Gradle. Sounds good to me as a start. We might provide different versions (e.g. libs from 0.10-0.13).
Generally I'd say yes. However, I'm not sure how to deal with changes in the interface. There is a new bitcoinconsensus_verify_script_with_amount since 0.13, which isn't available in earlier versions. If we are going to provide support for the older libs, this could be an issue? |
The library should be added to the project in one way or another.
Ideally there were some safe guards, to ensure the file was not tempered with.
This may include:
The library should be build via Gitian, or extracted from the official release.
The text was updated successfully, but these errors were encountered: