mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-05 16:57:56 +00:00
Include ledger_index in validations subscription stream
This commit is contained in:
@@ -1601,6 +1601,11 @@ void NetworkOPsImp::pubValidation (STValidation::ref val)
|
|||||||
jvObj [jss::ledger_hash] = to_string (val->getLedgerHash ());
|
jvObj [jss::ledger_hash] = to_string (val->getLedgerHash ());
|
||||||
jvObj [jss::signature] = strHex (val->getSignature ());
|
jvObj [jss::signature] = strHex (val->getSignature ());
|
||||||
|
|
||||||
|
auto const seq = *(*val)[~sfLedgerSequence];
|
||||||
|
|
||||||
|
if (seq != 0)
|
||||||
|
jvObj [jss::ledger_index] = to_string (seq);
|
||||||
|
|
||||||
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())
|
||||||
|
|||||||
Reference in New Issue
Block a user