started changes need to fix that it looks for bitcoind.exe

This commit is contained in:
cwaldron97 2019-07-02 13:45:04 -05:00
parent 5cb439df57
commit b9471f460c
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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)