Include ledger_index in validations subscription stream

This commit is contained in:
wilsonianb
2015-11-24 16:59:49 -08:00
committed by Nik Bougalis
parent b92a58d11e
commit 05c248f297

View File

@@ -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())