mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Replace Ledger with ReadView in most RPC handlers.
This commit is contained in:
committed by
Vinnie Falco
parent
c7ebe7205c
commit
1d09c54fdc
@@ -322,17 +322,6 @@ void forEachSLE(ReadView const& view, Functor func, uint256 const& start = {})
|
||||
break;
|
||||
}
|
||||
|
||||
/** Run a functor on each transaction in a ReadView, as long as the functor
|
||||
returns true. Might throw an exception if the ledger is corrupt. */
|
||||
template <class Functor>
|
||||
void forEachTx(ReadView const& view, Functor func)
|
||||
{
|
||||
for (auto i = view.txs.begin(); i != view.txs.begin(); ++i)
|
||||
if (i->first)
|
||||
if (! func(*i))
|
||||
break;
|
||||
}
|
||||
|
||||
} // ripple
|
||||
|
||||
#include <ripple/ledger/detail/ReadViewFwdRange.ipp>
|
||||
|
||||
Reference in New Issue
Block a user