diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt index f9806f3e..c55fcb5a 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt @@ -69,6 +69,8 @@ class GrpcUpstreams( fun start(): Flux { val channel: ManagedChannelBuilder<*> = if (auth != null && StringUtils.isNotEmpty(auth.ca)) { NettyChannelBuilder.forAddress(host, port) + // some messages are very large. many of them in megabytes, some even in gigabytes (ex. ETH Traces) + .maxInboundMessageSize(Int.MAX_VALUE) .useTransportSecurity() .enableRetry() .maxRetryAttempts(3)