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

+3 -7
View File
@@ -169,7 +169,6 @@ pub fn new_full<BE, Block: BlockT, Client>(
client: Arc<Client>,
executor: SubscriptionTaskExecutor,
deny_unsafe: DenyUnsafe,
rpc_max_payload: Option<usize>,
) -> (State<Block, Client>, ChildState<Block, Client>)
where
Block: BlockT + 'static,
@@ -189,12 +188,9 @@ where
+ 'static,
Client::Api: Metadata<Block>,
{
let child_backend = Box::new(self::state_full::FullState::new(
client.clone(),
executor.clone(),
rpc_max_payload,
));
let backend = Box::new(self::state_full::FullState::new(client, executor, rpc_max_payload));
let child_backend =
Box::new(self::state_full::FullState::new(client.clone(), executor.clone()));
let backend = Box::new(self::state_full::FullState::new(client, executor));
(State { backend, deny_unsafe }, ChildState { backend: child_backend })
}