mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 20:15:51 +00:00
Make the transaction job queue limit adjustable:
The job queue can impose limits of how many jobs of a particular type can be queued. This commit makes the previously hard-coded limit associated with transactions configurable by the server's operator. Servers that have increased memory capacity or which expect to see an influx of transactions can increase the number of transactions their server will be able to queue. This commit fixes #3556.
This commit is contained in:
committed by
Nik Bougalis
parent
b1d47c65d4
commit
660d9c1602
@@ -488,6 +488,14 @@ Config::loadFromString(std::string const& fileContents)
|
||||
REDUCE_RELAY_SQUELCH = sec.value_or("squelch", false);
|
||||
}
|
||||
|
||||
if (getSingleSection(secConfig, SECTION_MAX_TRANSACTIONS, strTemp, j_))
|
||||
{
|
||||
MAX_TRANSACTIONS = std::clamp(
|
||||
beast::lexicalCastThrow<int>(strTemp),
|
||||
MIN_JOB_QUEUE_TX,
|
||||
MAX_JOB_QUEUE_TX);
|
||||
}
|
||||
|
||||
if (getSingleSection(
|
||||
secConfig, SECTION_AMENDMENT_MAJORITY_TIME, strTemp, j_))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user