diff --git a/src/tests/libxrpl/helpers/TestServiceRegistry.h b/src/tests/libxrpl/helpers/TestServiceRegistry.h index 7070927842..39093d6792 100644 --- a/src/tests/libxrpl/helpers/TestServiceRegistry.h +++ b/src/tests/libxrpl/helpers/TestServiceRegistry.h @@ -62,11 +62,22 @@ private: */ class TestServiceRegistry : public ServiceRegistry { + static Fees + defaultFees() + { + Fees fees{XRPAmount{10}, XRPAmount{10 * kDropsPerXrp}, XRPAmount{2 * kDropsPerXrp}}; + fees.extensionComputeLimit = 1'000'000; + fees.extensionSizeLimit = 100'000; + fees.gasPrice = 1'000'000; + return fees; + } + TestLogs logs_{beast::Severity::Warning}; boost::asio::io_context io_context_; TestFamily family_{logs_.journal("TestFamily")}; LoadFeeTrack feeTrack_{logs_.journal("LoadFeeTrack")}; TestNetworkIDService networkIDService_; + Fees fees_{defaultFees()}; HashRouter hashRouter_{HashRouter::Setup{}, stopwatch()}; NodeCache tempNodeCache_{ "TempNodeCache", @@ -365,6 +376,12 @@ public: throw std::logic_error("TestServiceRegistry::getWalletDB() not implemented"); } + Fees + getFees() const override + { + return fees_; + } + // Temporary: Get the underlying Application Application& getApp() override