solution: introduce labels for upstreams
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -9,7 +9,6 @@ defaultOptions:
|
||||
|
||||
upstreams:
|
||||
- id: remote
|
||||
provider: dshackle
|
||||
connection:
|
||||
grpc:
|
||||
host: "10.2.0.15"
|
||||
|
||||
31
src/test/resources/upstreams-labels.yaml
Normal file
31
src/test/resources/upstreams-labels.yaml
Normal 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"
|
||||
Reference in New Issue
Block a user