From ac9ed3545b6067775f35efda47c121080d6e18d8 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Tue, 27 Sep 2016 23:37:54 +0400 Subject: [PATCH] Save/load fulfilled requests info (#1044) --- src/init.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/init.cpp b/src/init.cpp index 23f73b806..f21dc7a1b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -23,6 +23,7 @@ #include "main.h" #include "miner.h" #include "net.h" +#include "netfulfilledman.h" #include "policy/policy.h" #include "rpcserver.h" #include "script/standard.h" @@ -224,6 +225,8 @@ void PrepareShutdown() flatdb2.Dump(mnpayments); CFlatDB flatdb3("governance.dat", "magicGovernanceCache"); flatdb3.Dump(governance); + CFlatDB flatdb4("netfulfilled.dat", "magicFulfilledCache"); + flatdb4.Dump(netfulfilledman); UnregisterNodeSignals(GetNodeSignals()); @@ -1871,6 +1874,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) flatdb3.Load(governance); governance.ClearSeen(); + uiInterface.InitMessage(_("Loading fullfiled requests cache...")); + CFlatDB flatdb4("netfulfilled.dat", "magicFulfilledCache"); + flatdb4.Load(netfulfilledman); + // ********************************************************* Step 11c: update block tip in Dash modules // force UpdatedBlockTip to initialize pCurrentBlockIndex for DS, MN payments and budgets