solution: introduce labels for upstreams

This commit is contained in:
Igor Artamonov
2019-08-01 23:43:04 -04:00
parent 045c2fb3fa
commit 2c5551d818
13 changed files with 307 additions and 35 deletions

View File

@@ -10,7 +10,6 @@ defaultOptions:
upstreams:
- id: local
chain: ethereum
provider: geth
connection:
ethereum:
rpc:
@@ -20,7 +19,6 @@ upstreams:
origin: "http://localhost"
- id: infura
chain: ethereum
provider: infura
connection:
ethereum:
rpc:

View File

@@ -9,7 +9,6 @@ defaultOptions:
upstreams:
- id: remote
provider: dshackle
connection:
grpc:
host: "10.2.0.15"

View File

@@ -0,0 +1,31 @@
version: v1
defaultOptions:
- chains:
- ethereum
options:
disable-syncing: true
min-peers: 3
upstreams:
- id: remote
connection:
grpc:
host: "10.2.0.15"
auth:
type: tls
ca: /etc/ca.myservice.com.crt
certificate: /etc/client1.myservice.com.crt
key: /etc/client1.myservice.com.key
- id: local
chain: ethereum
labels:
api: geth
fullnode: true
connection:
ethereum:
rpc:
url: "http://localhost:8545"
ws:
url: "ws://localhost:8546"
origin: "http://localhost"