Start of code to track network state, track overwhelmed nodes, and adjust

transaction fees.
This commit is contained in:
JoelKatz
2012-09-11 11:56:41 -07:00
parent ac225c74e6
commit 81cd4cf820
4 changed files with 32 additions and 5 deletions

View File

@@ -688,7 +688,7 @@ bool LedgerConsensus::haveConsensus()
else
++disagree;
}
int currentValidations = theApp->getValidations().getCurrentValidationCount(mPreviousLedger->getCloseTimeNC());
int currentValidations = theApp->getValidations().getNodesAfter(mPrevLedgerHash);
return ContinuousLedgerTiming::haveConsensus(mPreviousProposers, agree + disagree, agree, currentValidations,
mPreviousMSeconds, mCurrentMSeconds);
}