enable governance cache

This commit is contained in:
Evan Duffield 2016-04-26 10:48:09 -07:00
parent 2df4059f4e
commit d9d72dd7af

View File

@ -222,8 +222,8 @@ void PrepareShutdown()
flatdb1.Dump(mnodeman); flatdb1.Dump(mnodeman);
CFlatDB<CMasternodePayments> flatdb2("mnpayments.dat", "magicMasternodePaymentsCache"); CFlatDB<CMasternodePayments> flatdb2("mnpayments.dat", "magicMasternodePaymentsCache");
flatdb2.Dump(mnpayments); flatdb2.Dump(mnpayments);
// CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache"); CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache");
// flatdb3.Dump(governance); flatdb3.Dump(governance);
StopTorControl(); StopTorControl();
UnregisterNodeSignals(GetNodeSignals()); UnregisterNodeSignals(GetNodeSignals());
@ -1829,9 +1829,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
CFlatDB<CMasternodePayments> flatdb2("mnpayments.dat", "magicMasternodePaymentsCache"); CFlatDB<CMasternodePayments> flatdb2("mnpayments.dat", "magicMasternodePaymentsCache");
flatdb2.Load(mnpayments); flatdb2.Load(mnpayments);
// CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache"); CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache");
// flatdb3.Load(governance); flatdb3.Load(governance);
// governance.ClearSeen(); governance.ClearSeen();
// ********************************************************* Step 11: setup DarkSend // ********************************************************* Step 11: setup DarkSend