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()
|
bool CActiveMasternode::SendMasternodePing()
|
||||||
{
|
{
|
||||||
if(!fPingerEnabled) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ std::map<uint256, int64_t> mapAskedForGovernanceObject;
|
|||||||
|
|
||||||
int nSubmittedFinalBudget;
|
int nSubmittedFinalBudget;
|
||||||
|
|
||||||
const std::string CGovernanceManager::SERIALIZATION_VERSION_STRING = "CGovernanceManager-Version-1";
|
const std::string CGovernanceManager::SERIALIZATION_VERSION_STRING = "CGovernanceManager-Version-2";
|
||||||
|
|
||||||
CGovernanceManager::CGovernanceManager()
|
CGovernanceManager::CGovernanceManager()
|
||||||
: pCurrentBlockIndex(NULL),
|
: pCurrentBlockIndex(NULL),
|
||||||
|
@ -188,6 +188,7 @@ public:
|
|||||||
LogPrint("gobject", "Governance object manager was cleared\n");
|
LogPrint("gobject", "Governance object manager was cleared\n");
|
||||||
mapObjects.clear();
|
mapObjects.clear();
|
||||||
mapSeenGovernanceObjects.clear();
|
mapSeenGovernanceObjects.clear();
|
||||||
|
mapWatchdogObjects.clear();
|
||||||
mapVoteToObject.Clear();
|
mapVoteToObject.Clear();
|
||||||
mapInvalidVotes.Clear();
|
mapInvalidVotes.Clear();
|
||||||
mapOrphanVotes.Clear();
|
mapOrphanVotes.Clear();
|
||||||
@ -213,6 +214,7 @@ public:
|
|||||||
READWRITE(mapInvalidVotes);
|
READWRITE(mapInvalidVotes);
|
||||||
READWRITE(mapOrphanVotes);
|
READWRITE(mapOrphanVotes);
|
||||||
READWRITE(mapObjects);
|
READWRITE(mapObjects);
|
||||||
|
READWRITE(mapWatchdogObjects);
|
||||||
READWRITE(mapLastMasternodeTrigger);
|
READWRITE(mapLastMasternodeTrigger);
|
||||||
if(ser_action.ForRead() && (strVersion != SERIALIZATION_VERSION_STRING)) {
|
if(ser_action.ForRead() && (strVersion != SERIALIZATION_VERSION_STRING)) {
|
||||||
Clear();
|
Clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user