mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-25 21:15:49 +00:00
Bring some constants into RPC::Tuning.h.
This commit is contained in:
committed by
Edward Hennis
parent
4eb6020813
commit
849e1ce5f4
@@ -32,6 +32,7 @@
|
||||
#include <ripple/resource/ResourceManager.h>
|
||||
#include <ripple/resource/Fees.h>
|
||||
#include <ripple/rpc/Coroutine.h>
|
||||
#include <ripple/rpc/impl/Tuning.h>
|
||||
#include <beast/crypto/base64.h>
|
||||
#include <ripple/rpc/RPCHandler.h>
|
||||
#include <beast/cxx14/algorithm.h> // <algorithm>
|
||||
@@ -237,7 +238,7 @@ ServerHandlerImp::processRequest (
|
||||
Json::Value jsonRPC;
|
||||
{
|
||||
Json::Reader reader;
|
||||
if ((request.size () > 1000000) ||
|
||||
if ((request.size () > RPC::Tuning::maxRequestSize) ||
|
||||
! reader.parse (request, jsonRPC) ||
|
||||
! jsonRPC ||
|
||||
! jsonRPC.isObject ())
|
||||
|
||||
Reference in New Issue
Block a user