diff --git a/src/ripple/app/ledger/impl/OpenLedger.cpp b/src/ripple/app/ledger/impl/OpenLedger.cpp index a73d8ec3b3..e0eface72c 100644 --- a/src/ripple/app/ledger/impl/OpenLedger.cpp +++ b/src/ripple/app/ledger/impl/OpenLedger.cpp @@ -19,6 +19,8 @@ #include #include +#include +#include #include #include #include @@ -108,13 +110,13 @@ OpenLedger::accept(Application& app, Rules const& rules, return p.first; }), retries, flags, j_); - // Apply local tx - for (auto const& item : locals) - ripple::apply(app, *next, - *item.second, flags, j_); // Call the modifier if (f) f(*next, j_); + // Apply local tx + for (auto const& item : locals) + app.getTxQ().apply(app, *next, + item.second, flags, j_); // Switch to the new open view std::lock_guard< std::mutex> lock2(current_mutex_);