mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 17:27:00 +00:00
fix: Apply clang-format and fix missing closing brace in Transaction.cpp
Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
2157919e45
commit
ddddf8cc15
@@ -187,6 +187,7 @@ Transaction::getJson(JsonOptions options, bool binary) const
|
||||
if (ctid)
|
||||
ret[jss::ctid] = *ctid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -321,8 +321,7 @@ populateJsonResponse(
|
||||
JsonOptions::Values::DisableApiPriorV2) |
|
||||
static_cast<JsonOptions::underlying_t>(
|
||||
JsonOptions::Values::DisableApiPriorV3);
|
||||
auto const opts =
|
||||
context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2;
|
||||
auto const opts = context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2;
|
||||
jvObj[jsonTx] = txn->getJson(opts, false);
|
||||
jvObj[jss::hash] = to_string(txn->getID());
|
||||
jvObj[jss::ledger_index] = txn->getLedger();
|
||||
@@ -341,8 +340,7 @@ populateJsonResponse(
|
||||
{
|
||||
uint32_t const lgrSeq = txn->getLedger();
|
||||
uint32_t const txnIdx = txnMeta->getIndex();
|
||||
uint32_t const netID =
|
||||
context.app.getNetworkIDService().getNetworkID();
|
||||
uint32_t const netID = context.app.getNetworkIDService().getNetworkID();
|
||||
if (auto const ctid = RPC::encodeCTID(lgrSeq, txnIdx, netID))
|
||||
jvObj[jss::ctid] = *ctid;
|
||||
}
|
||||
|
||||
@@ -211,8 +211,7 @@ populateJsonResponse(
|
||||
static constexpr auto kOptionsJsonV3 =
|
||||
static_cast<JsonOptions::underlying_t>(JsonOptions::Values::DisableApiPriorV2) |
|
||||
static_cast<JsonOptions::underlying_t>(JsonOptions::Values::DisableApiPriorV3);
|
||||
auto const kOptionsJson =
|
||||
context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2;
|
||||
auto const kOptionsJson = context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2;
|
||||
if (args.binary)
|
||||
{
|
||||
response[jss::tx_blob] = result.txn->getJson(kOptionsJson, true);
|
||||
|
||||
Reference in New Issue
Block a user