mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 16:35:53 +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?
|
// to declare consensus?
|
||||||
if (checkConsensusReached (currentAgree, currentProposers, proposing))
|
if (checkConsensusReached (currentAgree, currentProposers, proposing))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1623,6 +1623,7 @@ void NetworkOPsImp::pubValidation (STValidation::ref val)
|
|||||||
val->getSignerPublic());
|
val->getSignerPublic());
|
||||||
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 ());
|
||||||
|
jvObj [jss::full] = val->isFull();
|
||||||
|
|
||||||
auto const seq = *(*val)[~sfLedgerSequence];
|
auto const seq = *(*val)[~sfLedgerSequence];
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ STValidation::STValidation (
|
|||||||
mNodeID = calcNodeID(publicKey);
|
mNodeID = calcNodeID(publicKey);
|
||||||
assert (mNodeID.isNonZero ());
|
assert (mNodeID.isNonZero ());
|
||||||
|
|
||||||
if (!isFull)
|
if (isFull)
|
||||||
setFlag (kFullFlag);
|
setFlag (kFullFlag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user