solution: use port 2449 by default

This commit is contained in:
Igor Artamonov
2019-09-07 21:34:11 -04:00
parent 1ea6345cd6
commit 26d2b0a3a0
7 changed files with 22 additions and 22 deletions

View File

@@ -36,7 +36,7 @@ Create file `dshackle.yaml` with following content:
[source,yaml]
----
version: v1
port: 9001
port: 2449
tls:
enabled: false
upstreams:
@@ -45,7 +45,7 @@ upstreams:
Which sets the following:
- application listen on 0.0.0.0:9001
- application listen on 0.0.0.0:2448
- TLS security is disabled (_don't use in production!_)
- read upstreams configuration from file `upstreams.yaml` in the current directory
@@ -90,17 +90,17 @@ export INFURA_USER=...
.Run Dshackle
[source,bash]
----
docker run -p 9001:9001 -v $(pwd):/config -w /config -e "INFURA_USER=$INFURA_USER" emeraldpay/dshackle
docker run -p 2449:2449 -v $(pwd):/config -w /config -e "INFURA_USER=$INFURA_USER" emeraldpay/dshackle
----
Now it listen on port 9001 at the localhost and can be connected from any gRPC compatible client.
Now it listen on port 2449 at the localhost and can be connected from any gRPC compatible client.
Tools such as https://github.com/fullstorydev/grpcurl[gRPCurl] can automatically parse protobuf definitions and connect
to it (actual Protobuf sources are located in a separate repository which you can find at https://github.com/emeraldpay/proto)
.Connect and listen for new blocks on Ethereum Mainnet
[source,bash]
----
grpcurl -import-path ./proto/ -proto blockchain.proto -d "{\"type\": 100}" -plaintext 127.0.0.1:9001 io.emeraldpay.api.Blockchain/SubscribeHead
grpcurl -import-path ./proto/ -proto blockchain.proto -d "{\"type\": 100}" -plaintext 127.0.0.1:2449 io.emeraldpay.api.Blockchain/SubscribeHead
----
.Output would be like