Mark validations as full or partial:

Set kFullFlag in STValidation constructor and include validation
type (full or partial) in subscription stream.
This commit is contained in:
wilsonianb
2016-03-14 12:15:21 -07:00
committed by seelabs
parent 7a4bd2278d
commit d3962718aa
3 changed files with 3 additions and 2 deletions

View File

@@ -201,7 +201,7 @@ checkConsensus (
}
}
// Have we, together with the nodes on our UNL list, reached the treshold
// Have we, together with the nodes on our UNL list, reached the threshold
// to declare consensus?
if (checkConsensusReached (currentAgree, currentProposers, proposing))
{

View File

@@ -1623,6 +1623,7 @@ void NetworkOPsImp::pubValidation (STValidation::ref val)
val->getSignerPublic());
jvObj [jss::ledger_hash] = to_string (val->getLedgerHash ());
jvObj [jss::signature] = strHex (val->getSignature ());
jvObj [jss::full] = val->isFull();
auto const seq = *(*val)[~sfLedgerSequence];

View File

@@ -57,7 +57,7 @@ STValidation::STValidation (
mNodeID = calcNodeID(publicKey);
assert (mNodeID.isNonZero ());
if (!isFull)
if (isFull)
setFlag (kFullFlag);
}