Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Verify binaries from bitcoincore.org and bitcoin.org #10651
Conversation
laanwj
added the
Scripts and tools
label
Jun 22, 2017
|
Does this need such hardcoding for those two specific hosts, as opposed to a |
|
I mean that's just as much hard coding since it only downloads the binaries from one of the two (and unless you want to depend on bash for arrays.....).
…
|
|
I see a wget from both? |
|
With a very different error message on both :p
…
|
|
That seems a silly complication to justify duplicating the logic. Just say "failed to download file X from host Y". |
|
Well the first error message correctly highlights that it is most likely the user's fault (bad version string), whereas the second is mostly likely servers acting up. Could go further and attempt to download both in any case, however.
…
|
|
@sipa I added the array-based version at TheBlueMatt/bitcoin@3a60faa its more code, and IMO more complex, but if you still prefer it we can do that? |
I can't believe we're having a discussion whether to use arrays in 2017. Shellscript is horrible. (Concept ACK anyhow - I leave all implementation details to you) |
|
Heh, well I realized this script is already full of bashism, so I dont really care either way...its more code with the arrays but if we ever plan on adding more mirrors (I dont think so?) then it might be helpful. |
|
Concept ACK |
|
So, okay, can we make a decision here? Arrays or not? Should we throw a coin? |
|
Coin sounds good. My very weak vote is leave it as-is cause I find it less confusing, but dont care strongly either way. |
jonasschnelli
added this to the
0.15.0
milestone
Jul 7, 2017
|
If it is this complicated, I retract my suggestion :) |
laanwj
merged commit 6270d62
into
bitcoin:master
Jul 11, 2017
1 check passed
laanwj
added a commit
that referenced
this pull request
Jul 11, 2017
|
|
laanwj |
cef4b5c
|
|
Just going to merge this, it's outrageous to keep tools/tests pulls like this open if they simply do correctly what they should do. Cleaning up the code can be done later. |
TheBlueMatt commentedJun 22, 2017
In preparation for moving the "official" binary host to bitcoincore.org, use it for verifybinaries (and compare with bitcoin.org).