mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
started changes need to fix that it looks for bitcoind.exe
This commit is contained in:
parent
5cb439df57
commit
b9471f460c
@ -331,7 +331,12 @@ object BitcoindConfig extends BitcoinSLogger {
|
||||
"Library",
|
||||
"Application Support",
|
||||
"Bitcoin")
|
||||
} else {
|
||||
} else if (Properties.isWin) {
|
||||
Paths.get("C:",
|
||||
"Program Files",
|
||||
"Bitcoin")
|
||||
}
|
||||
else {
|
||||
Paths.get(Properties.userHome, ".bitcoin")
|
||||
}
|
||||
path.toFile
|
||||
|
@ -84,7 +84,7 @@ object BitcoindInstance {
|
||||
}
|
||||
|
||||
lazy val DEFAULT_BITCOIND_LOCATION: File = {
|
||||
val path = Try("which bitcoind".!!)
|
||||
val path = Try("which bitcoind.exe".!!)
|
||||
.getOrElse(
|
||||
throw new RuntimeException("Could not locate bitcoind on user PATH"))
|
||||
new File(path.trim)
|
||||
|
Loading…
Reference in New Issue
Block a user