mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-02-24 06:57:51 +01:00
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:
parent
813b58e977
commit
16c5d835de
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue