cleanup
This commit is contained in:
parent
19664dac8f
commit
49ad98d1f3
@ -412,13 +412,6 @@ void CGovernanceManager::ProcessMessage(CNode* pfrom, std::string& strCommand, C
|
||||
|
||||
}
|
||||
|
||||
//todo - 12.1 - terrible name - maybe DoesObjectExist?
|
||||
bool CGovernanceManager::PropExists(uint256 nHash)
|
||||
{
|
||||
if(mapObjects.count(nHash)) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
// description: incremental sync with our peers
|
||||
// note: incremental syncing seems excessive, well just have clients ask for specific objects and their votes
|
||||
// note: 12.1 - remove
|
||||
|
@ -109,7 +109,6 @@ public:
|
||||
bool AddGovernanceObject (CGovernanceObject& budgetProposal);
|
||||
bool UpdateGovernanceObject(CGovernanceVote& vote, CNode* pfrom, std::string& strError);
|
||||
bool AddOrUpdateVote(CGovernanceVote& vote, std::string& strError);
|
||||
bool PropExists(uint256 nHash);
|
||||
std::string GetRequiredPaymentsString(int nBlockHeight);
|
||||
void CleanAndRemove(bool fSignatureCheck);
|
||||
void CheckAndRemove();
|
||||
|
@ -221,7 +221,8 @@ void PrepareShutdown()
|
||||
GenerateBitcoins(false, 0, Params());
|
||||
StopNode();
|
||||
|
||||
// todo - 12.1 - magic strings as const
|
||||
// STORE DATA CACHES INTO SERIALIZED DAT FILES
|
||||
|
||||
CFlatDB<CMasternodeMan> flatdb1("mncache.dat", "magicMasternodeCache");
|
||||
flatdb1.Dump(mnodeman);
|
||||
CFlatDB<CMasternodePayments> flatdb2("mnpayments.dat", "magicMasternodePaymentsCache");
|
||||
@ -1824,7 +1825,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
||||
|
||||
// ********************************************************* Step 10: Load cache data
|
||||
|
||||
// todo - 12.1 - magic strings as const
|
||||
// LOAD SERIALIZED DAT FILES INTO DATA CACHES FOR INTERNAL USE
|
||||
|
||||
uiInterface.InitMessage(_("Loading masternode cache..."));
|
||||
CFlatDB<CMasternodeMan> flatdb1("mncache.dat", "magicMasternodeCache");
|
||||
flatdb1.Load(mnodeman);
|
||||
|
@ -1499,7 +1499,6 @@ CAmount GetBlockSubsidy(int nPrevBits, int nPrevHeight, const Consensus::Params&
|
||||
// LogPrintf("height %u diff %4.2f reward %i \n", nPrevHeight, dDiff, nSubsidy);
|
||||
nSubsidy *= COIN;
|
||||
|
||||
// updated - 12.1 - unified logic
|
||||
// yearly decline of production by 7.1% per year, projected 21.3M coins max by year 2050.
|
||||
for(int i = consensusParams.nSubsidyHalvingInterval; i <= nPrevHeight; i += consensusParams.nSubsidyHalvingInterval) nSubsidy -= nSubsidy/14;
|
||||
|
||||
|
@ -6,18 +6,6 @@
|
||||
#include "main.h"
|
||||
#include "init.h"
|
||||
|
||||
// todo 12.1 - remove the unused
|
||||
#include "governance.h"
|
||||
#include "masternode.h"
|
||||
#include "darksend.h"
|
||||
#include "governance.h"
|
||||
#include "masternodeman.h"
|
||||
#include "masternode-sync.h"
|
||||
#include "util.h"
|
||||
//#include "addrman.h"
|
||||
//#include <boost/filesystem.hpp>
|
||||
//#include <boost/lexical_cast.hpp>
|
||||
|
||||
CBudgetManager budget;
|
||||
CCriticalSection cs_budget;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user