mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 17:10:46 +00:00
refactor: Change config section and key string literals into constants (#7095)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
@@ -12,12 +12,12 @@
|
||||
#include <test/jtx/trust.h>
|
||||
|
||||
#include <xrpld/app/misc/TxQ.h>
|
||||
#include <xrpld/core/ConfigSections.h>
|
||||
#include <xrpld/rpc/Role.h>
|
||||
#include <xrpld/rpc/detail/TransactionSign.h>
|
||||
|
||||
#include <xrpl/basics/contract.h>
|
||||
#include <xrpl/beast/unit_test/suite.h>
|
||||
#include <xrpl/config/Constants.h>
|
||||
#include <xrpl/json/json_reader.h>
|
||||
#include <xrpl/json/json_value.h>
|
||||
#include <xrpl/json/to_string.h>
|
||||
@@ -2375,8 +2375,9 @@ public:
|
||||
testcase("autofill escalated fees");
|
||||
using namespace test::jtx;
|
||||
Env env{*this, envconfig([](std::unique_ptr<Config> cfg) {
|
||||
cfg->loadFromString("[" SECTION_SIGNING_SUPPORT "]\ntrue");
|
||||
cfg->section("transaction_queue").set("minimum_txn_in_ledger_standalone", "3");
|
||||
cfg->loadFromString(std::string("[") + Sections::kSigningSupport + "]\ntrue");
|
||||
cfg->section(Sections::kTransactionQueue)
|
||||
.set(Keys::kMinimumTxnInLedgerStandalone, "3");
|
||||
return cfg;
|
||||
})};
|
||||
LoadFeeTrack const& feeTrackOuter = env.app().getFeeTrack();
|
||||
|
||||
Reference in New Issue
Block a user