diff --git a/include/xrpl/protocol/Rules.h b/include/xrpl/protocol/Rules.h index e99ba9a12d..11ca8eb72a 100644 --- a/include/xrpl/protocol/Rules.h +++ b/include/xrpl/protocol/Rules.h @@ -36,9 +36,6 @@ public: Rules() = delete; - // Prevent passing temporary presets - they would create a dangling reference - explicit Rules(std::unordered_set>&& presets) = delete; - /** Construct an empty rule set. These are the rules reflected by diff --git a/src/test/app/RCLValidations_test.cpp b/src/test/app/RCLValidations_test.cpp index 3e3df9d19d..e85ae9c35e 100644 --- a/src/test/app/RCLValidations_test.cpp +++ b/src/test/app/RCLValidations_test.cpp @@ -217,10 +217,13 @@ class RCLValidations_test : public beast::unit_test::suite // Generate a chain of 256 + 10 ledgers jtx::Env env(*this); auto& j = env.journal; - Rules const rules{env.app().config().features}; - Fees const fees = env.app().config().FEES.toFees(); + Config config; auto prev = std::make_shared( - create_genesis, rules, fees, std::vector{}, env.app().getNodeFamily()); + create_genesis, + Rules{config.features}, + config.FEES.toFees(), + std::vector{}, + env.app().getNodeFamily()); history.push_back(prev); for (auto i = 0; i < (maxAncestors + 10); ++i) {