halve validator registration chunk size (#5837)

This commit is contained in:
tersec 2024-01-29 13:09:09 +00:00 committed by GitHub
parent af6affb5b3
commit 0638741f8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1738,7 +1738,7 @@ proc registerValidatorsPerBuilder(
# Some relay networks disallow large request bodies, so split requests
template addValidatorRegistration(
validatorRegistration: SignedValidatorRegistrationV1) =
const registrationValidatorChunkSize = 1000
const registrationValidatorChunkSize = 500
if validatorRegistrations[^1].len < registrationValidatorChunkSize:
validatorRegistrations[^1].add validatorRegistration