From 28dddb330dd8507c41c3182eb18318ef1c2cf9ee Mon Sep 17 00:00:00 2001 From: seelabs Date: Thu, 18 Jan 2024 10:23:45 -0500 Subject: [PATCH] fix: order book update variable swap: This is likely the result of a typo when the code was simplified. --- src/ripple/app/ledger/OrderBookDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/app/ledger/OrderBookDB.cpp b/src/ripple/app/ledger/OrderBookDB.cpp index faa957203a8..e1fc8a248f0 100644 --- a/src/ripple/app/ledger/OrderBookDB.cpp +++ b/src/ripple/app/ledger/OrderBookDB.cpp @@ -47,7 +47,7 @@ OrderBookDB::setup(std::shared_ptr const& ledger) if (seq != 0) { - if ((seq > ledger->seq()) && ((ledger->seq() - seq) < 25600)) + if ((ledger->seq() > seq) && ((ledger->seq() - seq) < 25600)) return; if ((ledger->seq() <= seq) && ((seq - ledger->seq()) < 16))