Count a validation for its previous ledger if it's during consensus time.

This commit is contained in:
JoelKatz
2012-09-05 10:05:15 -07:00
parent 7785b89b5d
commit 1dfdf8e9d8
4 changed files with 22 additions and 9 deletions

View File

@@ -249,7 +249,7 @@ void LedgerConsensus::checkLCL()
uint256 netLgr = mPrevLedgerHash;
int netLgrCount = 0;
boost::unordered_map<uint256, int> vals = theApp->getValidations().getCurrentValidations();
boost::unordered_map<uint256, int> vals = theApp->getValidations().getCurrentValidations(mPrevLedgerHash);
typedef std::pair<const uint256, int> u256_int_pair;
BOOST_FOREACH(u256_int_pair& it, vals)
{