mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "node: increase batch limits for auth rpc API (#27924)"
This reverts commit ecd50dade0.
This commit is contained in:
parent
8e0b2c609c
commit
bdb8e7adbf
2 changed files with 2 additions and 12 deletions
|
|
@ -36,13 +36,6 @@ const (
|
||||||
DefaultAuthPort = 8551 // Default port for the authenticated apis
|
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 (
|
var (
|
||||||
DefaultAuthCors = []string{"localhost"} // Default cors domain for the authenticated apis
|
DefaultAuthCors = []string{"localhost"} // Default cors domain for the authenticated apis
|
||||||
DefaultAuthVhosts = []string{"localhost"} // Default virtual hosts for the authenticated apis
|
DefaultAuthVhosts = []string{"localhost"} // Default virtual hosts for the authenticated apis
|
||||||
|
|
|
||||||
|
|
@ -449,11 +449,8 @@ func (n *Node) startRPC() error {
|
||||||
if err := server.setListenAddr(n.config.AuthAddr, port); err != nil {
|
if err := server.setListenAddr(n.config.AuthAddr, port); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
sharedConfig := rpcEndpointConfig{
|
sharedConfig := rpcConfig
|
||||||
jwtSecret: secret,
|
sharedConfig.jwtSecret = secret
|
||||||
batchItemLimit: engineAPIBatchItemLimit,
|
|
||||||
batchResponseSizeLimit: engineAPIBatchResponseSizeLimit,
|
|
||||||
}
|
|
||||||
if err := server.enableRPC(allAPIs, httpConfig{
|
if err := server.enableRPC(allAPIs, httpConfig{
|
||||||
CorsAllowedOrigins: DefaultAuthCors,
|
CorsAllowedOrigins: DefaultAuthCors,
|
||||||
Vhosts: n.config.AuthVirtualHosts,
|
Vhosts: n.config.AuthVirtualHosts,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue