mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Read request configuration options. (#236)
* Ignores read requests when contract execution disabled. * Added concurrent_read_reqeuests config. * Improved metric test script.
This commit is contained in:
@@ -144,6 +144,10 @@ namespace usr
|
||||
|
||||
if (msg_type == msg::usrmsg::MSGTYPE_CONTRACT_READ_REQUEST)
|
||||
{
|
||||
// Ignore the request if contract execution is disabled or read requests disallowed.
|
||||
if (!conf::cfg.contract.execute || conf::cfg.user.concurrent_read_reqeuests == 0)
|
||||
return 0;
|
||||
|
||||
std::string content;
|
||||
if (parser.extract_read_request(content) != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user