mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +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::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 (); )
|
||||
{
|
||||
if (auto p = i->second.lock())
|
||||
|
||||
Reference in New Issue
Block a user