Bitcoin
Functions
load.cpp File Reference
#include <wallet/load.h>
#include <interfaces/chain.h>
#include <scheduler.h>
#include <util/system.h>
#include <wallet/wallet.h>

Functions

bool VerifyWallets (interfaces::Chain &chain, const std::vector< std::string > &wallet_files)
 
bool LoadWallets (interfaces::Chain &chain, const std::vector< std::string > &wallet_files)
 Load wallet databases. More...
 
void StartWallets (CScheduler &scheduler)
 Complete startup of wallets. More...
 
void FlushWallets ()
 Flush all wallets in preparation for shutdown. More...
 
void StopWallets ()
 Stop all wallets. Wallets will be flushed first. More...
 
void UnloadWallets ()
 Close all wallets. More...
 

Function Documentation

◆ FlushWallets()

void FlushWallets ( )

Flush all wallets in preparation for shutdown.

◆ LoadWallets()

bool LoadWallets ( interfaces::Chain chain,
const std::vector< std::string > &  wallet_files 
)

Load wallet databases.

◆ StartWallets()

void StartWallets ( CScheduler scheduler)

Complete startup of wallets.

◆ StopWallets()

void StopWallets ( )

Stop all wallets. Wallets will be flushed first.

◆ UnloadWallets()

void UnloadWallets ( )

Close all wallets.

◆ VerifyWallets()

bool VerifyWallets ( interfaces::Chain chain,
const std::vector< std::string > &  wallet_files 
)

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 (WalletParameterInteraction forbids -salvagewallet, -zapwallettxes or -upgradewallet with multiwallet).