refactor: state RPC remove max_rpc_payload_size (#13649)

This limit is not needed anymore as the JSON-RPC servers doesn't terminate
the connection if the RPC max limit is exceeded anymore
This commit is contained in:
Niklas Adolfsson authored and GitHub committed 2023-03-21 15:25:33 +00:00
1 parent 77d8c522b6
commit 3b0a0aa92d
5 files changed
+30 -75

No files matched your search

+2 -6
View File
@@ -631,12 +631,8 @@ where
let (chain, state, child_state) = {
let chain = sc_rpc::chain::new_full(client.clone(), task_executor.clone()).into_rpc();
let (state, child_state) = sc_rpc::state::new_full(
client.clone(),
task_executor.clone(),
deny_unsafe,
config.rpc_max_payload,
);
let (state, child_state) =
sc_rpc::state::new_full(client.clone(), task_executor.clone(), deny_unsafe);
let state = state.into_rpc();
let child_state = child_state.into_rpc();