Skip to content

Commit

Permalink
Update constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyeh committed Nov 3, 2023
1 parent aa1979b commit 4573f68
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

public class PostBlsToExecutionChanges extends RestApiEndpoint {
public static final String ROUTE = "/eth/v1/beacon/pool/bls_to_execution_changes";
private static final int MAX_BLS_MESSENGER_PER_REQUEST = 5000;
private static final int MAX_BLS_MESSAGES_PER_REQUEST = 5000;
private final NodeDataProvider nodeDataProvider;

public PostBlsToExecutionChanges(
Expand Down Expand Up @@ -77,7 +77,7 @@ private static EndpointMetadata createEndpointMetadata(final SchemaDefinitionCac
@Override
public void handleRequest(RestApiRequest request) throws JsonProcessingException {
final List<SignedBlsToExecutionChange> blsToExecutionChanges = request.getRequestBody();
if (blsToExecutionChanges.size() > MAX_BLS_MESSENGER_PER_REQUEST) {
if (blsToExecutionChanges.size() > MAX_BLS_MESSAGES_PER_REQUEST) {
request.respondError(
SC_BAD_REQUEST,
"A maximum of 5,000 SignedBLSToExecutionChange objects can be submitted to the node's pool at one time");
Expand Down

0 comments on commit 4573f68

Please sign in to comment.