mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Add describeOwnerDir
This commit is contained in:
committed by
Edward Hennis
parent
fa900de548
commit
147fee0272
@@ -201,6 +201,9 @@ dirNext (ApplyView& view,
|
|||||||
unsigned int& uDirEntry, // <-> next entry
|
unsigned int& uDirEntry, // <-> next entry
|
||||||
uint256& uEntryIndex); // <-- The entry, if available. Otherwise, zero.
|
uint256& uEntryIndex); // <-- The entry, if available. Otherwise, zero.
|
||||||
|
|
||||||
|
std::function<void (SLE::ref, bool)>
|
||||||
|
describeOwnerDir(AccountID const& account);
|
||||||
|
|
||||||
// <-- uNodeDir: For deletion, present to make dirDelete efficient.
|
// <-- uNodeDir: For deletion, present to make dirDelete efficient.
|
||||||
// --> uRootIndex: The index of the base of the directory. Nodes are based off of this.
|
// --> uRootIndex: The index of the base of the directory. Nodes are based off of this.
|
||||||
// --> uLedgerIndex: Value to add to directory.
|
// --> uLedgerIndex: Value to add to directory.
|
||||||
|
|||||||
@@ -23,8 +23,8 @@
|
|||||||
#include <ripple/basics/contract.h>
|
#include <ripple/basics/contract.h>
|
||||||
#include <ripple/basics/Log.h>
|
#include <ripple/basics/Log.h>
|
||||||
#include <ripple/basics/StringUtilities.h>
|
#include <ripple/basics/StringUtilities.h>
|
||||||
|
#include <ripple/protocol/st.h>
|
||||||
#include <ripple/protocol/Quality.h>
|
#include <ripple/protocol/Quality.h>
|
||||||
#include <ripple/protocol/STArray.h>
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
@@ -572,6 +572,15 @@ dirNext (ApplyView& view,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::function<void (SLE::ref, bool)>
|
||||||
|
describeOwnerDir(AccountID const& account)
|
||||||
|
{
|
||||||
|
return [account](std::shared_ptr<SLE> const& sle, bool)
|
||||||
|
{
|
||||||
|
(*sle)[sfOwner] = account;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
TER
|
TER
|
||||||
dirAdd (ApplyView& view,
|
dirAdd (ApplyView& view,
|
||||||
std::uint64_t& uNodeDir,
|
std::uint64_t& uNodeDir,
|
||||||
|
|||||||
Reference in New Issue
Block a user