use only generic connection in examples (#632)

This commit is contained in:
a10zn8
2025-02-13 21:37:48 +03:00
committed by GitHub
parent eca16ba30d
commit e70ccd4feb
2 changed files with 39 additions and 44 deletions

View File

@@ -59,12 +59,11 @@ cluster:
options: options:
disable-validation: true disable-validation: true
connection: connection:
ethereum-pos: generic:
execution: rpc:
rpc: url: "https://lb.drpc.org/ogrpc?network=ethereum&dkey=${DRPC_KEY}"
url: "https://lb.drpc.org/ogrpc?network=ethereum&dkey=${DRPC_KEY}" ws:
ws: url: "wss://lb.drpc.org/ogws?network=ethereum&dkey=${DRPC_KEY}"
url: "wss://lb.drpc.org/ogws?network=ethereum&dkey=${DRPC_KEY}"
- id: solana - id: solana
node-id: 3 node-id: 3
chain: solana chain: solana

View File

@@ -110,28 +110,26 @@ cluster:
disabled: disabled:
- name: "admin_shutdown" - name: "admin_shutdown"
connection: connection:
ethereum-pos: generic:
execution: rpc:
rpc: url: "http://localhost:8545"
url: "http://localhost:8545" ws:
ws: url: "ws://localhost:8546"
url: "ws://localhost:8546" origin: "http://localhost"
origin: "http://localhost" basic-auth:
basic-auth: username: 9c199ad8f281f20154fc258fe41a6814
username: 9c199ad8f281f20154fc258fe41a6814 password: 258fe4149c199ad8f2811a68f20154fc
password: 258fe4149c199ad8f2811a68f20154fc
- id: infura - id: infura
chain: ethereum chain: ethereum
options: options:
disable-validation: true disable-validation: true
connection: connection:
ethereum-pos: generic:
execution: rpc:
rpc: url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2"
url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2" basic-auth:
basic-auth: username: 4fc258fe41a68149c199ad8f281f2015
username: 4fc258fe41a68149c199ad8f281f2015 password: 1a68f20154fc258fe4149c199ad8f281
password: 1a68f20154fc258fe4149c199ad8f281
- id: bitcoin - id: bitcoin
chain: bitcoin chain: bitcoin
options: options:
@@ -610,13 +608,12 @@ cluster:
- id: local - id: local
chain: ethereum chain: ethereum
connection: connection:
ethereum-pos: generic:
execution: rpc:
rpc: url: "http://localhost:8545"
url: "http://localhost:8545" ws:
ws: url: "ws://localhost:8546"
url: "ws://localhost:8546" origin: "http://localhost"
origin: "http://localhost"
include: include:
- "upstreams-extra.yaml" - "upstreams-extra.yaml"
---- ----
@@ -657,18 +654,17 @@ configuration, and may be omitted for most of the situations.
disabled: disabled:
- name: "admin_shutdown" - name: "admin_shutdown"
connection: connection:
ethereum-pos: generic:
execution: rpc:
rpc: url: "http://localhost:8545"
url: "http://localhost:8545" ws:
ws: url: "ws://localhost:8546"
url: "ws://localhost:8546" origin: "http://localhost"
origin: "http://localhost" basic-auth:
basic-auth: username: 9c199ad8f281f20154fc258fe41a6814
username: 9c199ad8f281f20154fc258fe41a6814 password: 258fe4149c199ad8f2811a68f20154fc
password: 258fe4149c199ad8f2811a68f20154fc frameSize: 5mb
frameSize: 5mb msgSize: 15mb
msgSize: 15mb
---- ----
.Main Config .Main Config
@@ -722,9 +718,9 @@ See xref:09-quorum-and-selectors.adoc[Quorum and Selectors]
`not_empty` - accept not _null_ value, otherwise retry another upstream; `not_empty` - accept not _null_ value, otherwise retry another upstream;
`not_lagging` - accept response only from a fully synced upstream. `not_lagging` - accept response only from a fully synced upstream.
| `connection.ethereum-pos` | `connection.generic`
| yes | yes
| Connection configuration for Ethereum API of PoS network | Generic connection configuration for most of networks e.g. Ethereum
| `connection.bitcoin` | `connection.bitcoin`
| yes | yes