From d9d72dd7af365cff7fc8c29f341b2b1c0bd31c0a Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Tue, 26 Apr 2016 10:48:09 -0700 Subject: [PATCH] enable governance cache --- src/init.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index bfd756771e..0d55cacc4c 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -222,8 +222,8 @@ void PrepareShutdown() flatdb1.Dump(mnodeman); CFlatDB flatdb2("mnpayments.dat", "magicMasternodePaymentsCache"); flatdb2.Dump(mnpayments); - // CFlatDB flatdb3("governance.dat", "magicGovernanceCache"); - // flatdb3.Dump(governance); + CFlatDB flatdb3("governance.dat", "magicGovernanceCache"); + flatdb3.Dump(governance); StopTorControl(); UnregisterNodeSignals(GetNodeSignals()); @@ -1829,9 +1829,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) CFlatDB flatdb2("mnpayments.dat", "magicMasternodePaymentsCache"); flatdb2.Load(mnpayments); - // CFlatDB flatdb3("governance.dat", "magicGovernanceCache"); - // flatdb3.Load(governance); - // governance.ClearSeen(); + CFlatDB flatdb3("governance.dat", "magicGovernanceCache"); + flatdb3.Load(governance); + governance.ClearSeen(); // ********************************************************* Step 11: setup DarkSend