From 942e2096ea6be0044e66d8cf58378cb0895ad2a4 Mon Sep 17 00:00:00 2001 From: Bronek Kozicki Date: Thu, 2 Nov 2023 21:26:05 +0000 Subject: [PATCH] Unconditionally set validated in account_tx output --- src/ripple/rpc/handlers/AccountTx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple/rpc/handlers/AccountTx.cpp b/src/ripple/rpc/handlers/AccountTx.cpp index 005d2053b99..addd9ea0f39 100644 --- a/src/ripple/rpc/handlers/AccountTx.cpp +++ b/src/ripple/rpc/handlers/AccountTx.cpp @@ -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); @@ -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);