Poll rpc heads using expected-block-time (#338)
This commit is contained in:
@@ -62,7 +62,15 @@ class GenericRpcConnector(
|
||||
head = when (connectorType) {
|
||||
RPC_ONLY -> {
|
||||
log.warn("Setting up connector for $id upstream with RPC-only access, less effective than WS+RPC")
|
||||
GenericRpcHead(getIngressReader(), forkChoice, id, blockValidator, headScheduler, chainSpecific)
|
||||
GenericRpcHead(
|
||||
getIngressReader(),
|
||||
forkChoice,
|
||||
id,
|
||||
blockValidator,
|
||||
headScheduler,
|
||||
chainSpecific,
|
||||
expectedBlockTime.coerceAtLeast(Duration.ofSeconds(1)),
|
||||
)
|
||||
}
|
||||
|
||||
WS_ONLY -> {
|
||||
|
||||
Reference in New Issue
Block a user