From 7a9028631a127bff3b3cd99aeb63c96f17ebb750 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Thu, 30 Jul 2015 07:41:14 -0700 Subject: [PATCH] Revert "Disable CheckAndRemove on file dumps" This reverts commit 3fc9ea4adff3f72949b1fc163a6581ce11c25db0. --- src/darksend.cpp | 1 + src/masternode-budget.cpp | 4 ++-- src/masternode-payments.cpp | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/darksend.cpp b/src/darksend.cpp index 08b40aee2f..cb97324b8b 100644 --- a/src/darksend.cpp +++ b/src/darksend.cpp @@ -2232,6 +2232,7 @@ void ThreadCheckDarkSendPool() } mnodeman.ProcessMasternodeConnections(); + masternodePayments.CleanPaymentList(); CleanTransactionLocksList(); //if we've used 90% of the Masternode list then drop all the oldest. diff --git a/src/masternode-budget.cpp b/src/masternode-budget.cpp index 7332694b28..af9578eac9 100644 --- a/src/masternode-budget.cpp +++ b/src/masternode-budget.cpp @@ -319,8 +319,8 @@ CBudgetDB::ReadResult CBudgetDB::Read(CBudgetManager& objToLoad, bool fDryRun) LogPrintf("Loaded info from budget.dat %dms\n", GetTimeMillis() - nStart); LogPrintf(" %s\n", objToLoad.ToString()); if(!fDryRun) { - //LogPrintf("Budget manager - cleaning....\n"); - //objToLoad.CheckAndRemove(); + LogPrintf("Budget manager - cleaning....\n"); + objToLoad.CheckAndRemove(); LogPrintf("Budget manager - result:\n"); LogPrintf(" %s\n", objToLoad.ToString()); } diff --git a/src/masternode-payments.cpp b/src/masternode-payments.cpp index 2100f5ec8f..653846ad1b 100644 --- a/src/masternode-payments.cpp +++ b/src/masternode-payments.cpp @@ -144,8 +144,8 @@ CMasternodePaymentDB::ReadResult CMasternodePaymentDB::Read(CMasternodePayments& LogPrintf("Loaded info from mnpayments.dat %dms\n", GetTimeMillis() - nStart); LogPrintf(" %s\n", objToLoad.ToString()); if(!fDryRun) { - //LogPrintf("Masternode payments manager - cleaning....\n"); - //objToLoad.CleanPaymentList(); + LogPrintf("Masternode payments manager - cleaning....\n"); + objToLoad.CleanPaymentList(); LogPrintf("Masternode payments manager - result:\n"); LogPrintf(" %s\n", objToLoad.ToString()); }