mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 01:40:55 +01:00
Add support for bitcoind 27.1 (#5609)
* Add support for bitcoind 27.1 * Update linux/windows hashes
This commit is contained in:
parent
29c38aa525
commit
dad7e1cef6
@ -23,7 +23,7 @@ TaskKeys.downloadBitcoind := {
|
||||
}
|
||||
|
||||
val versions =
|
||||
List("27.0", "26.1", "25.2")
|
||||
List("27.1", "26.1", "25.2")
|
||||
|
||||
logger.debug(
|
||||
s"(Maybe) downloading Bitcoin Core binaries for versions: ${versions.mkString(",")}")
|
||||
@ -96,7 +96,7 @@ TaskKeys.downloadBitcoind := {
|
||||
Map(
|
||||
"25.2" -> "8d8c387e597e0edfc256f0bbace1dac3ad1ebf4a3c06da3e2975fda333817dea",
|
||||
"26.1" -> "a5b7d206384a8100058d3f2e2f02123a8e49e83f523499e70e86e121a4897d5b",
|
||||
"27.0" -> "2a6974c5486f528793c79d42694b5987401e4a43c97f62b1383abf35bcee44a8"
|
||||
"27.1" -> "c9840607d230d65f6938b81deaec0b98fe9cb14c3a41a5b13b2c05d044a48422"
|
||||
)
|
||||
else if (Properties.isMac)
|
||||
Map(
|
||||
@ -108,8 +108,8 @@ TaskKeys.downloadBitcoind := {
|
||||
"8a8e415763b7ffd5988153cf03967d812eca629016dd3b0ddf6da3ab6f4a3621"
|
||||
else
|
||||
"acb50edd20692a9d023de12da573b64ca0fd9b4e9a2b88d1251020a3022b0f27"),
|
||||
"27.0" -> (if (System.getProperty("os.arch") == "aarch64")
|
||||
"1d9d9b837297a73fc7a3b1cfed376644e3fa25c4e1672fbc143d5946cb52431d"
|
||||
"27.1" -> (if (System.getProperty("os.arch") == "aarch64")
|
||||
"ad4a3fd484077224a82dd56d194efb6e614467f413ab1dfb8776da4d08a4c227"
|
||||
else
|
||||
"e1efd8c4605b2aabc876da93b6eee2bedd868ce7d1f02b0220c1001f903b3e2c")
|
||||
)
|
||||
@ -117,7 +117,7 @@ TaskKeys.downloadBitcoind := {
|
||||
Map(
|
||||
"25.2" -> "c2ac84f55ee879caefd4414868d318a741c52a7286da190bf7233d86a2ffca69",
|
||||
"26.1" -> "7bd0849e47472aeff99a0ea2c0cefd98f5be829e5a2d3b0168b5a54456cc638a",
|
||||
"27.0" -> "ca75babeaa3fb75f5a166f544adaa93fd7c1f06cf20d4e2c8c2a8b010f4c7603"
|
||||
"27.1" -> "9719871a2c9a45c741e33d670d2319dcd3f8f52a6059e9c435a9a2841188b932"
|
||||
)
|
||||
else sys.error(s"Unsupported OS: ${Properties.osName}")
|
||||
|
||||
@ -130,7 +130,7 @@ TaskKeys.downloadBitcoind := {
|
||||
logger.info(s"Extracting archive with command: $extractCommand")
|
||||
extractCommand.!!
|
||||
} else {
|
||||
Files.delete(expectedEndLocation)
|
||||
Files.deleteIfExists(expectedEndLocation)
|
||||
logger.error(
|
||||
s"Downloaded invalid version of bitcoind v$version, got $hash, expected ${expectedHash(version)}")
|
||||
}
|
||||
|
@ -386,7 +386,7 @@ object BitcoindVersion
|
||||
}
|
||||
|
||||
case object V27 extends BitcoindVersion {
|
||||
override def toString: String = "v27.0"
|
||||
override def toString: String = "v27.1"
|
||||
}
|
||||
|
||||
case object Unknown extends BitcoindVersion {
|
||||
|
@ -58,7 +58,7 @@ TaskKeys.downloadEclair := {
|
||||
logger.info(s"Extracting archive with command: $extractCommand")
|
||||
extractCommand.!!
|
||||
} else {
|
||||
Files.delete(versionDir)
|
||||
Files.deleteIfExists(versionDir)
|
||||
logger.error(
|
||||
s"Downloaded invalid version of eclair, got $hash, expected $expectedHash")
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ TaskKeys.downloadLnd := {
|
||||
logger.info(s"Extracting archive with command: $extractCommand")
|
||||
extractCommand.!!
|
||||
} else {
|
||||
Files.delete(versionDir)
|
||||
Files.deleteIfExists(versionDir)
|
||||
logger.error(
|
||||
s"Downloaded invalid version of lnd, got $hash, expected $expectedHash")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user