Skip to content

Commit

Permalink
[wallet] Rename InitLoadWallet() to OpenWallets()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jnewbery committed Sep 7, 2017
1 parent f088a1b commit 9c76ba1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)

// ********************************************************* Step 8: load wallet
#ifdef ENABLE_WALLET
if (!InitLoadWallet())
if (!OpenWallets())
return false;
#else
LogPrintf("No wallet support compiled in!\n");
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ bool WalletVerify()
return true;
}

bool InitLoadWallet()
bool OpenWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET)) {
LogPrintf("Wallet disabled!\n");
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ bool WalletParameterInteraction();
bool WalletVerify();

//! Load wallet databases.
bool InitLoadWallet();
bool OpenWallets();

#endif // BITCOIN_WALLET_INIT_H

0 comments on commit 9c76ba1

Please sign in to comment.