From b453603d3e4f1340b591ae2621d9bdead687f214 Mon Sep 17 00:00:00 2001 From: gregorydemay Date: Thu, 3 Oct 2024 16:43:22 +0200 Subject: [PATCH] fix HTTP_MAX_SIZE to 2 MB --- src/rpc_client/eth_rpc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rpc_client/eth_rpc/mod.rs b/src/rpc_client/eth_rpc/mod.rs index 4756571d..845b9a62 100644 --- a/src/rpc_client/eth_rpc/mod.rs +++ b/src/rpc_client/eth_rpc/mod.rs @@ -37,8 +37,8 @@ mod tests; pub const HEADER_SIZE_LIMIT: u64 = 2 * 1024; // This constant comes from the IC specification: -// > If provided, the value must not exceed 2MiB -const HTTP_MAX_SIZE: u64 = 2 * 1024 * 1024; +// > If provided, the value must not exceed 2MB +const HTTP_MAX_SIZE: u64 = 2_000_000; pub const MAX_PAYLOAD_SIZE: u64 = HTTP_MAX_SIZE - HEADER_SIZE_LIMIT;