Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Rename two files from Directory* to Dir*: #5058

Merged
merged 3 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/test/app/Escrow_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <test/jtx.h>
#include <xrpld/app/tx/applySteps.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/Indexes.h>
#include <xrpl/protocol/TxFlags.h>
Expand Down
2 changes: 1 addition & 1 deletion src/test/app/PayChan_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//==============================================================================

#include <test/jtx.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpld/rpc/detail/RPCHelpers.h>
#include <xrpl/basics/chrono.h>
#include <xrpl/protocol/Feature.h>
Expand Down
1 change: 0 additions & 1 deletion src/test/ledger/Directory_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

#include <test/jtx.h>
#include <xrpld/ledger/BookDirs.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Sandbox.h>
#include <xrpl/basics/random.h>
#include <xrpl/protocol/Feature.h>
Expand Down
1 change: 0 additions & 1 deletion src/xrpld/app/paths/detail/BookStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <xrpld/app/paths/detail/FlatSets.h>
#include <xrpld/app/paths/detail/Steps.h>
#include <xrpld/app/tx/detail/OfferStream.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/PaymentSandbox.h>
#include <xrpl/basics/IOUAmount.h>
#include <xrpl/basics/Log.h>
Expand Down
1 change: 0 additions & 1 deletion src/xrpld/app/tx/detail/NFTokenBurn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include <xrpld/app/tx/detail/NFTokenBurn.h>
#include <xrpld/app/tx/detail/NFTokenUtils.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/View.h>
#include <xrpl/protocol/Feature.h>
#include <xrpl/protocol/Protocol.h>
Expand Down
2 changes: 1 addition & 1 deletion src/xrpld/app/tx/detail/NFTokenUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//==============================================================================

#include <xrpld/app/tx/detail/NFTokenUtils.h>
#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>
#include <xrpld/ledger/View.h>
#include <xrpl/basics/algorithm.h>
#include <xrpl/protocol/Feature.h>
Expand Down
12 changes: 12 additions & 0 deletions src/xrpld/ledger/Directory.h → src/xrpld/ledger/Dir.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@

namespace ripple {

/** A class that simplifies iterating ledger directory pages

The Dir class provides a forward iterator for walking through
the uint256 values contained in ledger directories.

The Dir class also allows accelerated directory walking by
stepping directly from one page to the next using the next_page()
member function.

As of July 2024, the Dir class is only being used with NFTokenOffer
directories and for unit tests.
*/
class Dir
{
private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
//==============================================================================

#include <xrpld/ledger/Directory.h>
#include <xrpld/ledger/Dir.h>

namespace ripple {

Expand Down
Loading