mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 05:25:55 +00:00
Include amendments in validations subscription
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user