From 143637eaaf1539fc429a84df651b2dfe283c0a42 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Mon, 9 Oct 2017 18:06:57 +0900 Subject: [PATCH] Add Config file to regtest docker --- Regtest/README.md | 11 ++++++++++- Regtest/bitcoin.conf | 4 ++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Regtest/bitcoin.conf diff --git a/Regtest/README.md b/Regtest/README.md index 3e3ccde..3cd4b8e 100644 --- a/Regtest/README.md +++ b/Regtest/README.md @@ -6,6 +6,15 @@ It exposes BTCPay on the host address http://localhost:8080/. It also exposes Bitcoin Core RPC which you can access through port 8081: +To access it, you can use: +On Powershell: + +``` +bitcoin-cli -conf="$pwd/bitcoin.conf" getblockcount +``` + +On Linux: + ``` -bitcoin-cli -regtest -rpcport=8081 -rpcpassword=DwubwWsoo3 -rpcuser=ceiwHEbqWI83 getblockcount +bitcoin-cli -conf="$pwd/bitcoin.conf" getblockcount ``` \ No newline at end of file diff --git a/Regtest/bitcoin.conf b/Regtest/bitcoin.conf new file mode 100644 index 0000000..39371d4 --- /dev/null +++ b/Regtest/bitcoin.conf @@ -0,0 +1,4 @@ +regtest=1 +rpcport=8081 +rpcpassword=DwubwWsoo3 +rpcuser=ceiwHEbqWI83 \ No newline at end of file