diff --git a/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindConfig.scala b/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindConfig.scala index eacfcdb93d..81c3826234 100644 --- a/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindConfig.scala +++ b/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindConfig.scala @@ -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 diff --git a/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindInstance.scala b/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindInstance.scala index aa963476a7..1692d06081 100644 --- a/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindInstance.scala +++ b/bitcoind-rpc/src/main/scala/org/bitcoins/rpc/config/BitcoindInstance.scala @@ -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)