Aleph main (#536)
This commit is contained in:
Submodule emerald-grpc updated: 2bf139e809...fddeafc254
Submodule foundation/src/main/resources/public updated: 1603cf3af7...8cc3c28304
@@ -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()
|
AlwaysHeadLivenessValidator()
|
||||||
} else {
|
} else {
|
||||||
when (connectorType) {
|
when (connectorType) {
|
||||||
@@ -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) {
|
override fun setCaches(caches: Caches) {
|
||||||
if (head is CachesEnabled) {
|
if (head is CachesEnabled) {
|
||||||
head.setCaches(caches)
|
head.setCaches(caches)
|
||||||
|
|||||||
Reference in New Issue
Block a user