BlockchainCommons / GordianServer-macOS

Tor-protected full-node GordianServer for macOS
Other
63 stars 8 forks source link

Defaults Helper Does Not Follow New File Name Format #172

Open shannona opened 2 years ago

shannona commented 2 years ago

Per #171, Bitcoin Core 23.0 introduced a new file name format that differentiates between arm64 (M1) and x86_64 (Intel). The default values for the Helpers in Helpers/Defaults.Swift do not recognize this. The uname() command in Swift can be used to set this correctly, with the new file name format being one of:

bitcoin-23.0-arm64-apple-darwin.tar.gz
bitcoin-23.0-x86_64-apple-darwin.tar.gz

However, that may not do the right thing if the program is running in Rosetta on an M1, where Bitcoin Core itself preferably runs as the arm64 binary.