mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ STValidation::STValidation (
|
||||
mNodeID = calcNodeID(publicKey);
|
||||
assert (mNodeID.isNonZero ());
|
||||
|
||||
if (!isFull)
|
||||
if (isFull)
|
||||
setFlag (kFullFlag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user