2022 04 20 issue 4280 (#4282)

* Set bitcoin-s.node.mode=neutrino by default in docker-application.conf

* Fix bitcoin-s.node.peers in docker-application.conf, fix documentation
This commit is contained in:
Chris Stewart 2022-04-21 06:15:57 -05:00 committed by GitHub
parent 813b58e977
commit 16c5d835de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,9 +1,9 @@
bitcoin-s.network = mainnet
bitcoin-s.network = ${?BITCOIN_S_NETWORK}
bitcoin-s.node.mode = bitcoind
bitcoin-s.node.mode = neutrino
bitcoin-s.node.mode = ${?BITCOIN_S_NODE_MODE}
bitcoin-s.node.peers = [${?BITCOIN_S_NODE_PEERS}]
bitcoin-s.node.peers = ["neutrino.suredbits.com:8333"]
# need to bind to all interfaces so we can
# have host machine forward requests to the docker container

View file

@ -63,13 +63,13 @@ This means we need to forward requests on the host machine to the docker contain
This can be done with the following command
```
docker run -d -p 9999:9999 -p 19999:19999 bitcoin-s-server:latest
docker run -d -p 9999:9999 -p 19999:19999 -e BITCOIN_S_SERVER_RPC_PASSWORD='topsecret' bitcoinscala/bitcoin-s-server:latest
```
Now you can send requests with `bitcoin-s-cli` or `curl`.
Here is an example with `bitcoin-s-cli`
```
./bitcoin-s-cli getblockcount
./bitcoin-s-cli getblockcount --password topsecret
10000
```