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:
parent
0600a6ce1a
commit
286f6ad87e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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),
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user