Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
bitcoin-wallet.cpp File Reference
#include <bitcoin-build-config.h>
#include <chainparams.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <common/args.h>
#include <common/system.h>
#include <compat/compat.h>
#include <interfaces/init.h>
#include <key.h>
#include <logging.h>
#include <pubkey.h>
#include <tinyformat.h>
#include <util/exception.h>
#include <util/translation.h>
#include <wallet/wallettool.h>
#include <exception>
#include <functional>
#include <string>
#include <tuple>
Include dependency graph for bitcoin-wallet.cpp:

Go to the source code of this file.

Functions

static void SetupWalletToolArgs (ArgsManager &argsman)
 
static std::optional< int > WalletAppInit (ArgsManager &args, int argc, char *argv[])
 
 if (!init)
 
 SetupEnvironment ()
 
 RandomInit ()
 
 catch (const std::exception &e)
 
 catch (...)
 
 if (command->args.size() !=0)
 
 if (!wallet::WalletTool::ExecuteWalletToolFunc(args, command->command))
 

Variables

const std::function< std::string(const char *)> G_TRANSLATION_FUN = nullptr
 Translate string to current locale using Qt. More...
 
 MAIN_FUNCTION
 
int exit_status
 
std::unique_ptr< interfaces::Initinit = interfaces::MakeWalletInit(argc, argv, exit_status)
 
 try
 
const auto command = args.GetCommand()
 
ECC_Context ecc_context {}
 
return EXIT_SUCCESS
 

Function Documentation

◆ catch() [1/2]

catch (   ...)

Definition at line 120 of file bitcoin-wallet.cpp.

◆ catch() [2/2]

catch ( const std::exception &  e)

Definition at line 117 of file bitcoin-wallet.cpp.

◆ if() [1/3]

if ( init)

Definition at line 109 of file bitcoin-wallet.cpp.

◆ if() [2/3]

if ( wallet::WalletTool::ExecuteWalletToolFuncargs, command->command)

Definition at line 136 of file bitcoin-wallet.cpp.

◆ if() [3/3]

if ( command->args.size() !  = 0)

Definition at line 130 of file bitcoin-wallet.cpp.

Here is the call graph for this function:

◆ RandomInit()

RandomInit ( )

Definition at line 771 of file random.cpp.

Here is the caller graph for this function:

◆ SetupEnvironment()

SetupEnvironment ( )

Definition at line 59 of file system.cpp.

◆ SetupWalletToolArgs()

static void SetupWalletToolArgs ( ArgsManager argsman)
static

Definition at line 31 of file bitcoin-wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WalletAppInit()

static std::optional< int > WalletAppInit ( ArgsManager args,
int  argc,
char *  argv[] 
)
static

Definition at line 54 of file bitcoin-wallet.cpp.

Here is the call graph for this function:

Variable Documentation

◆ command

const auto command = args.GetCommand()

Definition at line 125 of file bitcoin-wallet.cpp.

◆ ecc_context

ECC_Context ecc_context {}

Definition at line 135 of file bitcoin-wallet.cpp.

◆ exit_status

return node exit_status

Definition at line 107 of file bitcoin-wallet.cpp.

◆ EXIT_SUCCESS

return EXIT_SUCCESS

Definition at line 139 of file bitcoin-wallet.cpp.

◆ G_TRANSLATION_FUN

const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr

Translate string to current locale using Qt.

Translate a message to the native language of the user.

Definition at line 29 of file bitcoin-wallet.cpp.

◆ init

std::unique_ptr<interfaces::Init> init = interfaces::MakeWalletInit(argc, argv, exit_status)

Definition at line 108 of file bitcoin-wallet.cpp.

◆ MAIN_FUNCTION

MAIN_FUNCTION
Initial value:
{
ArgsManager gArgs
Definition: args.cpp:42
ArgsManager & args
Definition: bitcoind.cpp:277

Definition at line 99 of file bitcoin-wallet.cpp.

◆ try

try
Initial value:
{
if (const auto maybe_exit{WalletAppInit(args, argc, argv)}) return *maybe_exit
static std::optional< int > WalletAppInit(ArgsManager &args, int argc, char *argv[])

Definition at line 115 of file bitcoin-wallet.cpp.