Fix decoding max length (#2816)

## Issue Addressed

N/A

## Proposed Changes

Fix encoder max length to the correct value (`MAX_RPC_SIZE`).
This commit is contained in:
Pawan Dhananjay
2021-11-16 22:23:39 +00:00
parent a43a2448b7
commit e32c09bfda
3 changed files with 42 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ lazy_static! {
}
/// The maximum bytes that can be sent across the RPC.
const MAX_RPC_SIZE: usize = 1_048_576; // 1M
pub const MAX_RPC_SIZE: usize = 1_048_576; // 1M
/// The protocol prefix the RPC protocol id.
const PROTOCOL_PREFIX: &str = "/eth2/beacon_chain/req";
/// Time allowed for the first byte of a request to arrive before we time out (Time To First Byte).