mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +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)
|
if (seq != 0)
|
||||||
jvObj [jss::ledger_index] = to_string (seq);
|
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 (); )
|
for (auto i = mSubValidations.begin (); i != mSubValidations.end (); )
|
||||||
{
|
{
|
||||||
if (auto p = i->second.lock())
|
if (auto p = i->second.lock())
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ JSS ( affected ); // out: AcceptedLedgerTx
|
|||||||
JSS ( age ); // out: NetworkOPs, Peers
|
JSS ( age ); // out: NetworkOPs, Peers
|
||||||
JSS ( alternatives ); // out: PathRequest, RipplePathFind
|
JSS ( alternatives ); // out: PathRequest, RipplePathFind
|
||||||
JSS ( amendment_blocked ); // out: NetworkOPs
|
JSS ( amendment_blocked ); // out: NetworkOPs
|
||||||
JSS ( amendments ); // in: AccountObjects
|
JSS ( amendments ); // in: AccountObjects, out: NetworkOPs
|
||||||
JSS ( asks ); // out: Subscribe
|
JSS ( asks ); // out: Subscribe
|
||||||
JSS ( assets ); // out: GatewayBalances
|
JSS ( assets ); // out: GatewayBalances
|
||||||
JSS ( authorized ); // out: AccountLines
|
JSS ( authorized ); // out: AccountLines
|
||||||
|
|||||||
Reference in New Issue
Block a user