Skip to content

Commit

Permalink
Lower ClientMaximumValidatorIds to match beacon spec limit (#5082)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshufro authored Jun 16, 2023
1 parent c22962f commit 11f5250
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions beacon_chain/spec/eth2_apis/rest_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,10 @@ const
# will return HTTP error 400.
ServerMaximumValidatorIds* = 16384

# https://github.com/ethereum/beacon-APIs/blob/2.3.x/apis/beacon/states/validators.yaml#L23
# Maximum number of validators that can be sent in single request by
# validator client (VC).
# NOTE: This value depend on beacon node's `rest-max-headers-size`
# configuration option.
#
# Size of public key in HTTP request could be calculated by formula -
# bytes48 * 2 + len("0x") + len(",") = 99 bytes.
# So 1024 keys will occupy 101,376 bytes. Default value for HTTP headers size
# is 128Kb = 131,072 bytes.
ClientMaximumValidatorIds* = 1024
ClientMaximumValidatorIds* = 30

# https://github.com/ethereum/beacon-APIs/blob/master/apis/validator/duties/attester.yaml#L32
# https://github.com/ethereum/beacon-APIs/blob/master/apis/validator/duties/sync.yaml#L16
Expand Down

0 comments on commit 11f5250

Please sign in to comment.