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
@@ -90,32 +90,29 @@ void fillJsonTx (Object& json, LedgerFill const& fill)
|
||||
|
||||
try
|
||||
{
|
||||
using value_type = ReadView::txs_type::value_type;
|
||||
forEachTx(fill.ledger, [&] (value_type const& i) {
|
||||
for (auto& i: fill.ledger.txs)
|
||||
{
|
||||
count.yield();
|
||||
|
||||
if (! bExpanded)
|
||||
{
|
||||
txns.append(to_string(i.first->getTransactionID()));
|
||||
return true;
|
||||
}
|
||||
|
||||
auto&& txJson = appendObject (txns);
|
||||
|
||||
if (bBinary)
|
||||
else if (bBinary)
|
||||
{
|
||||
auto&& txJson = appendObject (txns);
|
||||
txJson[jss::tx_blob] = serializeHex(*i.first);
|
||||
if (i.second)
|
||||
txJson[jss::meta] = serializeHex(*i.second);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto&& txJson = appendObject (txns);
|
||||
copyFrom(txJson, i.first->getJson(0));
|
||||
if (i.second)
|
||||
txJson[jss::metaData] = i.second->getJson(0);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user