Skip to content

Commit

Permalink
fix: order book update variable swap: (#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 Mar 12, 2024
1 parent 4ce426d commit ad8e976
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 ad8e976

Please sign in to comment.