RPC: Limit request payload size to 50kB

This commit is contained in:
Trent Nelson
2020-09-16 12:50:43 -06:00
committed by mergify[bot]
parent f6cda2579f
commit 32dcce0ac1
3 changed files with 5 additions and 1 deletions

View File

@@ -353,6 +353,7 @@ impl JsonRpcService {
]))
.cors_max_age(86400)
.request_middleware(request_middleware)
.max_request_body_size(MAX_REQUEST_PAYLOAD_SIZE)
.start_http(&rpc_addr);
if let Err(e) = server {