diff --git a/src/ledger/test/InMemoryLedgerTxn.cpp b/src/ledger/test/InMemoryLedgerTxn.cpp index 573c6de7d8..93a18733d7 100644 --- a/src/ledger/test/InMemoryLedgerTxn.cpp +++ b/src/ledger/test/InMemoryLedgerTxn.cpp @@ -402,4 +402,21 @@ InMemoryLedgerTxn::getBestOffer(Asset const& buying, Asset const& selling, { return mRealRootForOffers.getBestOffer(buying, selling, worseThan); } + +#ifdef BEST_OFFER_DEBUGGING +bool +InMemoryLedgerTxn::bestOfferDebuggingEnabled() const +{ + return mRealRootForOffers.bestOfferDebuggingEnabled(); +} + +std::shared_ptr +InMemoryLedgerTxn::getBestOfferSlow(Asset const& buying, Asset const& selling, + OfferDescriptor const* worseThan, + std::unordered_set& exclude) +{ + return mRealRootForOffers.getBestOfferSlow(buying, selling, worseThan, + exclude); +} +#endif } diff --git a/src/ledger/test/InMemoryLedgerTxn.h b/src/ledger/test/InMemoryLedgerTxn.h index 18c833a33e..b823082cf0 100644 --- a/src/ledger/test/InMemoryLedgerTxn.h +++ b/src/ledger/test/InMemoryLedgerTxn.h @@ -124,6 +124,15 @@ class InMemoryLedgerTxn : public LedgerTxn LedgerRange const& ledgers) const override; void deleteObjectsModifiedOnOrAfterLedger(uint32_t ledger) const override; + +#ifdef BEST_OFFER_DEBUGGING + virtual bool bestOfferDebuggingEnabled() const override; + + virtual std::shared_ptr + getBestOfferSlow(Asset const& buying, Asset const& selling, + OfferDescriptor const* worseThan, + std::unordered_set& exclude) override; +#endif }; }