Bitcoin Core  24.99.0
P2P Digital Currency
Functions | Variables
bitcoin-wallet.cpp File Reference
#include <chainparams.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <compat/compat.h>
#include <interfaces/init.h>
#include <key.h>
#include <logging.h>
#include <pubkey.h>
#include <tinyformat.h>
#include <util/system.h>
#include <util/translation.h>
#include <util/url.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)
 
 ECC_Start ()
 
 if (!wallet::WalletTool::ExecuteWalletToolFunc(args, command->command))
 
 ECC_Stop ()
 

Variables

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

Function Documentation

◆ catch() [1/2]

catch (   ...)

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

◆ catch() [2/2]

catch ( const std::exception &  e)

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

◆ ECC_Start()

ECC_Start ( )

Definition at line 392 of file key.cpp.

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

◆ ECC_Stop()

ECC_Stop ( )

Definition at line 409 of file key.cpp.

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

◆ if() [1/3]

if ( init)

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

◆ if() [2/3]

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

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

◆ if() [3/3]

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

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

Here is the call graph for this function:

◆ RandomInit()

RandomInit ( )

Definition at line 701 of file random.cpp.

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

◆ SetupEnvironment()

SetupEnvironment ( )

Definition at line 1374 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 53 of file bitcoin-wallet.cpp.

Here is the call graph for this function:

Variable Documentation

◆ command

const auto command = args.GetCommand()

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

◆ exit_status

int exit_status

Definition at line 105 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 28 of file bitcoin-wallet.cpp.

◆ globalVerifyHandle

ECCVerifyHandle globalVerifyHandle

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

◆ init

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

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

◆ MAIN_FUNCTION

MAIN_FUNCTION
Initial value:
{
ArgsManager args
ArgsManager gArgs
Definition: system.cpp:86

Definition at line 97 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 113 of file bitcoin-wallet.cpp.

◆ URL_DECODE

UrlDecodeFn* const URL_DECODE = nullptr

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