Bitcoin Core  27.99.0
P2P Digital Currency
Functions | Variables
bitcoin-wallet.cpp File Reference
#include <chainparams.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <common/args.h>
#include <common/system.h>
#include <common/url.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)
 
 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()
 
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.

◆ ECC_Start()

ECC_Start ( )

Definition at line 435 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 452 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 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 756 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 59 of file system.cpp.

◆ SetupWalletToolArgs()

static void SetupWalletToolArgs ( ArgsManager argsman)
static

Definition at line 33 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 55 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.

◆ exit_status

return node exit_status

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

◆ EXIT_SUCCESS

return EXIT_SUCCESS

Definition at line 140 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 30 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:41
ArgsManager & args
Definition: bitcoind.cpp:268

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.

◆ URL_DECODE

UrlDecodeFn* const URL_DECODE = nullptr

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