mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 06:55:08 +01:00
Fix 'bitcoind not found' error message
This commit is contained in:
parent
d108d89bb2
commit
c19afebc04
1 changed files with 8 additions and 2 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
package bisq.apitest.linux;
|
||||
|
||||
import java.nio.file.Paths;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
||||
|
@ -70,9 +72,13 @@ abstract class AbstractLinuxProcess implements LinuxProcess {
|
|||
throw new IllegalStateException(berkeleyDbLibPath + " cannot be found or executed");
|
||||
}
|
||||
|
||||
File bitcoindExecutable = new File(config.bitcoinPath);
|
||||
File bitcoindExecutable = Paths.get(config.bitcoinPath, "bitcoind").toFile();
|
||||
if (!bitcoindExecutable.exists() || !bitcoindExecutable.canExecute())
|
||||
throw new IllegalStateException(bitcoindExecutable + " cannot be found or executed");
|
||||
throw new IllegalStateException(format("'%s' cannot be found or executed.%n"
|
||||
+ "A bitcoin-core v0.19.X installation is required, and" +
|
||||
" a '--bitcoinPath' option must be passed on the command line"
|
||||
+ " or added to 'apitest.properties'",
|
||||
bitcoindExecutable.getAbsolutePath()));
|
||||
|
||||
File bitcoindDatadir = new File(config.bitcoinDatadir);
|
||||
if (!bitcoindDatadir.exists() || !bitcoindDatadir.canWrite())
|
||||
|
|
Loading…
Add table
Reference in a new issue