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