diff --git a/src/ripple/app/misc/NetworkOPs.cpp b/src/ripple/app/misc/NetworkOPs.cpp index c7b4ac962c..10a2bcd385 100644 --- a/src/ripple/app/misc/NetworkOPs.cpp +++ b/src/ripple/app/misc/NetworkOPs.cpp @@ -1630,6 +1630,13 @@ void NetworkOPsImp::pubValidation (STValidation::ref val) if (seq != 0) jvObj [jss::ledger_index] = to_string (seq); + if (val->isFieldPresent (sfAmendments)) + { + jvObj[jss::amendments] = Json::Value (Json::arrayValue); + for (auto const& amendment : val->getFieldV256(sfAmendments)) + jvObj [jss::amendments].append (to_string (amendment)); + } + for (auto i = mSubValidations.begin (); i != mSubValidations.end (); ) { if (auto p = i->second.lock()) diff --git a/src/ripple/protocol/JsonFields.h b/src/ripple/protocol/JsonFields.h index 2b10530bc8..272c7b963f 100644 --- a/src/ripple/protocol/JsonFields.h +++ b/src/ripple/protocol/JsonFields.h @@ -78,7 +78,7 @@ JSS ( affected ); // out: AcceptedLedgerTx JSS ( age ); // out: NetworkOPs, Peers JSS ( alternatives ); // out: PathRequest, RipplePathFind JSS ( amendment_blocked ); // out: NetworkOPs -JSS ( amendments ); // in: AccountObjects +JSS ( amendments ); // in: AccountObjects, out: NetworkOPs JSS ( asks ); // out: Subscribe JSS ( assets ); // out: GatewayBalances JSS ( authorized ); // out: AccountLines