From bdb8e7adbfb7ceda9fc6b6f061fbd27bac226947 Mon Sep 17 00:00:00 2001 From: devopsbo3 <69951731+devopsbo3@users.noreply.github.com> Date: Fri, 10 Nov 2023 12:27:53 -0600 Subject: [PATCH] Revert "node: increase batch limits for auth rpc API (#27924)" This reverts commit ecd50dade073a5f8e86674d12daff149dc88d1b2. --- node/defaults.go | 7 ------- node/node.go | 7 ++----- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/node/defaults.go b/node/defaults.go index 42d9d4cde0..d8f718121e 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -36,13 +36,6 @@ const ( DefaultAuthPort = 8551 // Default port for the authenticated apis ) -const ( - // Engine API batch limits: these are not configurable by users, and should cover the - // needs of all CLs. - engineAPIBatchItemLimit = 2000 - engineAPIBatchResponseSizeLimit = 250 * 1000 * 1000 -) - var ( DefaultAuthCors = []string{"localhost"} // Default cors domain for the authenticated apis DefaultAuthVhosts = []string{"localhost"} // Default virtual hosts for the authenticated apis diff --git a/node/node.go b/node/node.go index 41c9971fe8..da41169c52 100644 --- a/node/node.go +++ b/node/node.go @@ -449,11 +449,8 @@ func (n *Node) startRPC() error { if err := server.setListenAddr(n.config.AuthAddr, port); err != nil { return err } - sharedConfig := rpcEndpointConfig{ - jwtSecret: secret, - batchItemLimit: engineAPIBatchItemLimit, - batchResponseSizeLimit: engineAPIBatchResponseSizeLimit, - } + sharedConfig := rpcConfig + sharedConfig.jwtSecret = secret if err := server.enableRPC(allAPIs, httpConfig{ CorsAllowedOrigins: DefaultAuthCors, Vhosts: n.config.AuthVirtualHosts,