mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Remove global strWalletFile
As it says on the tin. There is no need to have this variable be global, it's only used in AppInit2.
This commit is contained in:
parent
a92aded70e
commit
7d4dda7630
2 changed files with 1 additions and 3 deletions
|
|
@ -40,7 +40,6 @@ using namespace std;
|
|||
using namespace boost;
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
std::string strWalletFile;
|
||||
CWallet* pwalletMain;
|
||||
#endif
|
||||
|
||||
|
|
@ -584,7 +583,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
|||
}
|
||||
bSpendZeroConfChange = GetArg("-spendzeroconfchange", true);
|
||||
|
||||
strWalletFile = GetArg("-wallet", "wallet.dat");
|
||||
std::string strWalletFile = GetArg("-wallet", "wallet.dat");
|
||||
#endif
|
||||
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue