solution: use port 2449 by default
This commit is contained in:
10
README.adoc
10
README.adoc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user