From 96f796978cdd400f7b66893c2f244f8d72c12fff Mon Sep 17 00:00:00 2001 From: KirillPamPam Date: Mon, 17 Jun 2024 15:56:09 +0400 Subject: [PATCH] Open Campus chain (#509) --- emerald-grpc | 2 +- foundation/src/main/resources/chains.yaml | 18 ++++++++++++++++++ .../generic/connectors/GenericRpcConnector.kt | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/emerald-grpc b/emerald-grpc index a3351cdcb..715bd76c6 160000 --- a/emerald-grpc +++ b/emerald-grpc @@ -1 +1 @@ -Subproject commit a3351cdcb5448f422dc61726a5186c6a16c8829a +Subproject commit 715bd76c68fc0bee73d88d887f7cf2ddfb1b776a diff --git a/foundation/src/main/resources/chains.yaml b/foundation/src/main/resources/chains.yaml index b9de05b02..2df39a565 100644 --- a/foundation/src/main/resources/chains.yaml +++ b/foundation/src/main/resources/chains.yaml @@ -1539,3 +1539,21 @@ chain-settings: code: ROOTSTOCK_TESTNET_CHAIN grpcId: 10084 priority: 10 + - id: open-campus-codex + label: Open Campus Codex + type: eth + settings: + expected-block-time: 20m + lags: + syncing: 10 + lagging: 5 + options: + validate-peers: false + fork-choice: quorum + chains: + - id: Sepolia + priority: 2 + code: OPEN_CAMPUS_CODEX_SEPOLIA + short-names: [open-campus-codex-sepolia] + chain-id: 0xa045c + grpcId: 10085 diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/generic/connectors/GenericRpcConnector.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/generic/connectors/GenericRpcConnector.kt index e1fa4d77f..f58d987b8 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/generic/connectors/GenericRpcConnector.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/generic/connectors/GenericRpcConnector.kt @@ -129,7 +129,7 @@ class GenericRpcConnector( } } - liveness = if (connectorType != RPC_ONLY && (chain == Chain.ALEPHZERO__SEPOLIA || chain == Chain.CONNEXT__SEPOLIA)) { + liveness = if (connectorType != RPC_ONLY && (chain == Chain.OPEN_CAMPUS_CODEX__SEPOLIA || chain == Chain.ALEPHZERO__SEPOLIA || chain == Chain.CONNEXT__SEPOLIA)) { AlwaysHeadLivenessValidator() } else { when (connectorType) {