Skip to content

Commit

Permalink
[wallet] Rename WalletVerify() to VerifyWallets()
Browse files Browse the repository at this point in the history
This function can now verify multiple wallets.
  • Loading branch information
jnewbery committed Sep 7, 2017
1 parent 9c76ba1 commit 1b9cee6
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
Expand Up @@ -1246,7 +1246,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)

// ********************************************************* Step 5: verify wallet database integrity
#ifdef ENABLE_WALLET
if (!WalletVerify())
if (!VerifyWallets())
return false;
#endif
// ********************************************************* Step 6: network initialization
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/init.cpp
Expand Up @@ -171,7 +171,7 @@ bool WalletParameterInteraction()
return true;
}

bool WalletVerify()
bool VerifyWallets()
{
if (gArgs.GetBoolArg("-disablewallet", DEFAULT_DISABLE_WALLET))
return true;
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/init.h
Expand Up @@ -17,7 +17,7 @@ bool WalletParameterInteraction();
//! Responsible for reading and validating the -wallet arguments and verifying the wallet database.
// This function will perform salvage on the wallet if requested, as long as only one wallet is
// being loaded (CWallet::ParameterInteraction forbids -salvagewallet, -zapwallettxes or -upgradewallet with multiwallet).
bool WalletVerify();
bool VerifyWallets();

//! Load wallet databases.
bool OpenWallets();
Expand Down

0 comments on commit 1b9cee6

Please sign in to comment.