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,