Skip to content

Commit

Permalink
Unconditionally set validated in account_tx output
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronek committed Nov 2, 2023
1 parent b5b1118 commit 942e209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ripple/rpc/handlers/AccountTx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ populateJsonResponse(
if (txn)
{
Json::Value& jvObj = jvTxns.append(Json::objectValue);
jvObj[jss::validated] = true;

auto const json_tx =
(context.apiVersion > 1 ? jss::tx_json : jss::tx);
Expand Down Expand Up @@ -356,7 +357,6 @@ populateJsonResponse(
{
jvObj[jss::meta] =
txnMeta->getJson(JsonOptions::include_date);
jvObj[jss::validated] = true;
insertDeliveredAmount(
jvObj[jss::meta], context, txn, *txnMeta);
insertNFTSyntheticInJson(jvObj, sttx, *txnMeta);
Expand Down

0 comments on commit 942e209

Please sign in to comment.