Browse Source

[wallet] Rename InitLoadWallet() to OpenWallets()

Rationale:
- this init function can now open multiple wallets (hence
  Wallet->Wallets)
- This is named as the antonym to CloseWallets(), which carries out the
  opposite action.
0.16
John Newbery 7 years ago
parent
commit
9c76ba18cd
  1. 2
      src/init.cpp
  2. 2
      src/wallet/init.cpp
  3. 2
      src/wallet/init.h

2
src/init.cpp

@ -1567,7 +1567,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
// ********************************************************* Step 8: load wallet // ********************************************************* Step 8: load wallet
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
if (!InitLoadWallet()) if (!OpenWallets())
return false; return false;
#else #else
LogPrintf("No wallet support compiled in!\n"); LogPrintf("No wallet support compiled in!\n");

2
src/wallet/init.cpp

@ -228,7 +228,7 @@ bool WalletVerify()
return true; return true;
} }
bool InitLoadWallet() bool OpenWallets()
{ {
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) { if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
LogPrintf("Wallet disabled!\n"); LogPrintf("Wallet disabled!\n");

2
src/wallet/init.h

@ -20,6 +20,6 @@ bool WalletParameterInteraction();
bool WalletVerify(); bool WalletVerify();
//! Load wallet databases. //! Load wallet databases.
bool InitLoadWallet(); bool OpenWallets();
#endif // BITCOIN_WALLET_INIT_H #endif // BITCOIN_WALLET_INIT_H

Loading…
Cancel
Save