Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -224,6 +225,8 @@ void PrepareShutdown()
flatdb2.Dump(mnpayments);
CFlatDB<CGovernanceManager> flatdb3("governance.dat", "magicGovernanceCache");
flatdb3.Dump(governance);
CFlatDB<CNetFulfilledRequestManager> flatdb4("netfulfilled.dat", "magicFulfilledCache");
flatdb4.Dump(netfulfilledman);

UnregisterNodeSignals(GetNodeSignals());

Expand Down Expand Up @@ -1871,6 +1874,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
flatdb3.Load(governance);
governance.ClearSeen();

uiInterface.InitMessage(_("Loading fullfiled requests cache..."));
CFlatDB<CNetFulfilledRequestManager> 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
Expand Down