Add watchdog expiration map to governance cache (#1170)

* Fix misspelled logging category

* Added mapWatchdogObjects to governance cache and bumped format version
This commit is contained in:
Tim Flynn 2016-11-28 19:01:03 -05:00 committed by UdjinM6
parent 0600a6ce1a
commit 286f6ad87e
3 changed files with 4 additions and 2 deletions

View File

@ -93,7 +93,7 @@ std::string CActiveMasternode::GetTypeString() const
bool CActiveMasternode::SendMasternodePing()
{
if(!fPingerEnabled) {
LogPrint("masterndoe", "CActiveMasternode::SendMasternodePing -- %s: masternode ping service is disabled, skipping...\n", GetStateString());
LogPrint("masternode", "CActiveMasternode::SendMasternodePing -- %s: masternode ping service is disabled, skipping...\n", GetStateString());
return false;
}

View File

@ -28,7 +28,7 @@ std::map<uint256, int64_t> mapAskedForGovernanceObject;
int nSubmittedFinalBudget;
const std::string CGovernanceManager::SERIALIZATION_VERSION_STRING = "CGovernanceManager-Version-1";
const std::string CGovernanceManager::SERIALIZATION_VERSION_STRING = "CGovernanceManager-Version-2";
CGovernanceManager::CGovernanceManager()
: pCurrentBlockIndex(NULL),

View File

@ -188,6 +188,7 @@ public:
LogPrint("gobject", "Governance object manager was cleared\n");
mapObjects.clear();
mapSeenGovernanceObjects.clear();
mapWatchdogObjects.clear();
mapVoteToObject.Clear();
mapInvalidVotes.Clear();
mapOrphanVotes.Clear();
@ -213,6 +214,7 @@ public:
READWRITE(mapInvalidVotes);
READWRITE(mapOrphanVotes);
READWRITE(mapObjects);
READWRITE(mapWatchdogObjects);
READWRITE(mapLastMasternodeTrigger);
if(ser_action.ForRead() && (strVersion != SERIALIZATION_VERSION_STRING)) {
Clear();