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

Remove bitcoin-core binaries from repo. #397

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Wukong247
Copy link

Closes: #396

This requirement we faced when we tried to publish the crate to crates.io.
With this commit, we can download the bitcoin-core binary once based on
system OS and there-on use it as cached.
Copy link

codecov bot commented Feb 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.76%. Comparing base (77a9dbd) to head (82891bd).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #397      +/-   ##
==========================================
+ Coverage   70.50%   70.76%   +0.25%     
==========================================
  Files          34       34              
  Lines        4242     4242              
==========================================
+ Hits         2991     3002      +11     
+ Misses       1251     1240      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@rishkwal rishkwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack. Just a thought — should we also do integrity verification of the binary?

Ok(res) if res.status_code == 503 => {
// If the response is 503, log and prepare for retry
eprintln!(
"Attempt {}: URL {} returned status code 503 (Service Unavailable)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't it just be attempt since attempt is already starting from 1?

@mojoX911
Copy link

mojoX911 commented Feb 4, 2025

I am not seeing the point here. Downloading bitcoind is not a user-side requirement. We only needed the binary for testing. User will run their own node.

Also this doesn't fix the github CI timeout issues for which we had the binary in the first place.

@Shourya742
Copy link

I am not seeing the point here. Downloading bitcoind is not a user-side requirement. We only needed the binary for testing. User will run their own node.

Also this doesn't fix the github CI timeout issues for which we had the binary in the first place.

This is only for testing, and the required crates added here are feature-gated. There is still a possibility of a GitHub timeout, but we can host the binary on our own server and download it from there if bitcoin.org is slow. However, including the binaries in the repository is not the right approach. I am prepared to modify the CI in case of GitHub Action timeouts.

@mojoX911
Copy link

mojoX911 commented Feb 4, 2025

There is still a possibility of a GitHub timeout, but we can host the binary on our own server and download it from there if bitcoin.org is slow.

Lets do that.

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

Successfully merging this pull request may close these issues.

Reduce Repository Bloat by Removing Bitcoin Core Binaries
4 participants