Skip to content

Commit

Permalink
fix: order book update variable swap: (XRPLF#4890)
Browse files Browse the repository at this point in the history
This is likely the result of a typo when the code was simplified.
  • Loading branch information
seelabs authored and sophiax851 committed Jun 12, 2024
1 parent 5b04c49 commit 3120592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/OrderBookDB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ OrderBookDB::setup(std::shared_ptr<ReadView const> 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))
Expand Down

0 comments on commit 3120592

Please sign in to comment.