Skip to content

Commit

Permalink
Aleph main (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
KirillPamPam authored Jul 30, 2024
1 parent 358ef7d commit 6b249a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emerald-grpc
2 changes: 1 addition & 1 deletion foundation/src/main/resources/public
Submodule public updated 1 files
+56 −0 chains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class GenericRpcConnector(
}
}

liveness = if (connectorType != RPC_ONLY && (chain == Chain.OPEN_CAMPUS_CODEX__SEPOLIA || chain == Chain.ALEPHZERO__SEPOLIA || chain == Chain.CONNEXT__SEPOLIA)) {
liveness = if (connectorType != RPC_ONLY && isSpecialChain(chain)) {
AlwaysHeadLivenessValidator()
} else {
when (connectorType) {
Expand All @@ -139,6 +139,9 @@ class GenericRpcConnector(
}
}

private fun isSpecialChain(chain: Chain) =
chain == Chain.OPEN_CAMPUS_CODEX__SEPOLIA || chain == Chain.ALEPHZERO__SEPOLIA || chain == Chain.CONNEXT__SEPOLIA || chain == Chain.ALEPHZERO__MAINNET

override fun setCaches(caches: Caches) {
if (head is CachesEnabled) {
head.setCaches(caches)
Expand Down

0 comments on commit 6b249a3

Please sign in to comment.