Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/init.cpp
Show First 20 Lines • Show All 384 Lines • ▼ Show 20 Lines | for (const std::string &walletFile : gArgs.GetArgs("-wallet")) { | ||||
} | } | ||||
vpwallets.push_back(pwallet); | vpwallets.push_back(pwallet); | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
void WalletInit::Start(CScheduler &scheduler) const { | void WalletInit::Start(CScheduler &scheduler) const { | ||||
for (CWalletRef pwallet : vpwallets) { | for (CWallet *pwallet : vpwallets) { | ||||
pwallet->postInitProcess(scheduler); | pwallet->postInitProcess(scheduler); | ||||
} | } | ||||
} | } | ||||
void WalletInit::Flush() const { | void WalletInit::Flush() const { | ||||
for (CWalletRef pwallet : vpwallets) { | for (CWallet *pwallet : vpwallets) { | ||||
pwallet->Flush(false); | pwallet->Flush(false); | ||||
} | } | ||||
} | } | ||||
void WalletInit::Stop() const { | void WalletInit::Stop() const { | ||||
for (CWalletRef pwallet : vpwallets) { | for (CWallet *pwallet : vpwallets) { | ||||
pwallet->Flush(true); | pwallet->Flush(true); | ||||
} | } | ||||
} | } | ||||
void WalletInit::Close() const { | void WalletInit::Close() const { | ||||
for (CWalletRef pwallet : vpwallets) { | for (CWallet *pwallet : vpwallets) { | ||||
delete pwallet; | delete pwallet; | ||||
} | } | ||||
vpwallets.clear(); | vpwallets.clear(); | ||||
} | } |