mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Inject Config:
* Use dependency injections instead * Remove deprecated fee interfaces
This commit is contained in:
committed by
Vinnie Falco
parent
c7b3153958
commit
fa796a2eb5
@@ -127,7 +127,6 @@ public:
|
||||
beast::Journal const journal;
|
||||
|
||||
/** Configuration used. */
|
||||
// VFALCO NOTE Some code still calls getConfig()
|
||||
Config const config;
|
||||
|
||||
/** The master account. */
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace jtx {
|
||||
// VFALCO Could wrap the log in a Journal here
|
||||
Env::Env (beast::unit_test::suite& test_)
|
||||
: test(test_)
|
||||
, config()
|
||||
, master("master", generateKeyPair(
|
||||
KeyType::secp256k1,
|
||||
generateSeed("masterpassphrase")))
|
||||
@@ -105,7 +106,7 @@ Env::close(NetClock::time_point const& closeTime)
|
||||
next->setAccepted (
|
||||
std::chrono::duration_cast<std::chrono::seconds> (
|
||||
closeTime.time_since_epoch ()).count (),
|
||||
ledgerPossibleTimeResolutions[0], false);
|
||||
ledgerPossibleTimeResolutions[0], false, app().config());
|
||||
OrderedTxs locals({});
|
||||
openLedger.accept(app(), next->rules(), next,
|
||||
locals, false, retries, applyFlags(), *router);
|
||||
|
||||
Reference in New Issue
Block a user