[bisq-network/bisq] [WIP] Add API test harness for Linux (#4366)

Stan notifications at github.com
Sat Jul 11 13:33:57 UTC 2020


@ghubstan commented on this pull request.



> +// bitcoin-cli -regtest getbalances
+// bitcoin-cli -regtest getrpcinfo
+
+ at Slf4j
+public class BitcoinDaemon extends AbstractLinuxProcess implements LinuxProcess {
+
+    public BitcoinDaemon(ApiTestConfig config) {
+        super("bitcoind", config);
+    }
+
+    @Override
+    public void start() throws InterruptedException, IOException {
+        String bitcoindCmd = "export LD_LIBRARY_PATH=" + config.berkeleyDbLibPath + ";"
+                + " " + config.bitcoinPath + "/bitcoind"
+                + " -datadir=" + config.bitcoinDatadir
+                + " -daemon";

You no longer need to configure a `BerkeleyDb` lib path if your bitcoin-core binary is statically linked to `BerkeleyDb`.  The `berkeleyDbLibPath` option now defaults to an empty string.  If not set, no `export LD_LIBRARY_PATH` will not be pre-pended to the `bitcoind` command.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4366#discussion_r453195525
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200711/2eff21ca/attachment.html>


More information about the bisq-github mailing list