From e70ccd4febae10582e5ca6c3b4ed648d82b4e7a3 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Thu, 13 Feb 2025 21:37:48 +0300 Subject: [PATCH] use only generic connection in examples (#632) --- docs/04-upstream-config.adoc | 11 +++-- docs/reference-configuration.adoc | 72 +++++++++++++++---------------- 2 files changed, 39 insertions(+), 44 deletions(-) diff --git a/docs/04-upstream-config.adoc b/docs/04-upstream-config.adoc index d1d84ab8..053cff6d 100644 --- a/docs/04-upstream-config.adoc +++ b/docs/04-upstream-config.adoc @@ -59,12 +59,11 @@ cluster: options: disable-validation: true connection: - ethereum-pos: - execution: - rpc: - url: "https://lb.drpc.org/ogrpc?network=ethereum&dkey=${DRPC_KEY}" - ws: - url: "wss://lb.drpc.org/ogws?network=ethereum&dkey=${DRPC_KEY}" + generic: + rpc: + url: "https://lb.drpc.org/ogrpc?network=ethereum&dkey=${DRPC_KEY}" + ws: + url: "wss://lb.drpc.org/ogws?network=ethereum&dkey=${DRPC_KEY}" - id: solana node-id: 3 chain: solana diff --git a/docs/reference-configuration.adoc b/docs/reference-configuration.adoc index 0bd3e395..b3a40cc7 100644 --- a/docs/reference-configuration.adoc +++ b/docs/reference-configuration.adoc @@ -110,28 +110,26 @@ cluster: disabled: - name: "admin_shutdown" connection: - ethereum-pos: - execution: - rpc: - url: "http://localhost:8545" - ws: - url: "ws://localhost:8546" - origin: "http://localhost" - basic-auth: - username: 9c199ad8f281f20154fc258fe41a6814 - password: 258fe4149c199ad8f2811a68f20154fc + generic: + rpc: + url: "http://localhost:8545" + ws: + url: "ws://localhost:8546" + origin: "http://localhost" + basic-auth: + username: 9c199ad8f281f20154fc258fe41a6814 + password: 258fe4149c199ad8f2811a68f20154fc - id: infura chain: ethereum options: disable-validation: true connection: - ethereum-pos: - execution: - rpc: - url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2" - basic-auth: - username: 4fc258fe41a68149c199ad8f281f2015 - password: 1a68f20154fc258fe4149c199ad8f281 + generic: + rpc: + url: "https://mainnet.infura.io/v3/fa28c968191849c1aff541ad1d8511f2" + basic-auth: + username: 4fc258fe41a68149c199ad8f281f2015 + password: 1a68f20154fc258fe4149c199ad8f281 - id: bitcoin chain: bitcoin options: @@ -610,13 +608,12 @@ cluster: - id: local chain: ethereum connection: - ethereum-pos: - execution: - rpc: - url: "http://localhost:8545" - ws: - url: "ws://localhost:8546" - origin: "http://localhost" + generic: + rpc: + url: "http://localhost:8545" + ws: + url: "ws://localhost:8546" + origin: "http://localhost" include: - "upstreams-extra.yaml" ---- @@ -657,18 +654,17 @@ configuration, and may be omitted for most of the situations. disabled: - name: "admin_shutdown" connection: - ethereum-pos: - execution: - rpc: - url: "http://localhost:8545" - ws: - url: "ws://localhost:8546" - origin: "http://localhost" - basic-auth: - username: 9c199ad8f281f20154fc258fe41a6814 - password: 258fe4149c199ad8f2811a68f20154fc - frameSize: 5mb - msgSize: 15mb + generic: + rpc: + url: "http://localhost:8545" + ws: + url: "ws://localhost:8546" + origin: "http://localhost" + basic-auth: + username: 9c199ad8f281f20154fc258fe41a6814 + password: 258fe4149c199ad8f2811a68f20154fc + frameSize: 5mb + msgSize: 15mb ---- .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_lagging` - accept response only from a fully synced upstream. -| `connection.ethereum-pos` +| `connection.generic` | yes -| Connection configuration for Ethereum API of PoS network +| Generic connection configuration for most of networks e.g. Ethereum | `connection.bitcoin` | yes