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

@@ -34,7 +34,9 @@ public:
void getValidationCount(const uint256& ledger, bool currentOnly, int& trusted, int& untrusted);
int getTrustedValidationCount(const uint256& ledger);
int getCurrentValidationCount(uint32 afterTime);
int getNodesAfter(const uint256& ledger);
int getLoadRatio(bool overLoaded);
boost::unordered_map<uint256, int> getCurrentValidations(uint256 currentLedger = uint256());