Skip to content

Commit

Permalink
fix: order book update variable swap:
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 committed Jan 18, 2024
1 parent 861bd1a commit 28dddb3
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 28dddb3

Please sign in to comment.