Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
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))
template<typename C, typename S, typename UnaryOp>
auto Join (const C &container, const S &separator, UnaryOp unary_op)
 Join all container items.

Variables

const TranslateFn G_TRANSLATION_FUN {nullptr}
 Translate string to current locale using Qt.
 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 111 of file bitcoin-wallet.cpp.

◆ catch() [2/2]

catch ( const std::exception & e)

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

◆ if() [1/3]

if ( ! init)

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

◆ if() [2/3]

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

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

Here is the call graph for this function:

◆ if() [3/3]

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

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

Here is the call graph for this function:

◆ Join()

template<typename C, typename S, typename UnaryOp>
auto util::Join ( const C & container,
const S & separator,
UnaryOp unary_op )

Join all container items.

Typically used to concatenate strings but accepts containers with elements of any type.

Parameters
containerThe items to join
separatorThe separator
unary_opApply this operator to each item

Definition at line 205 of file string.h.

Here is the caller graph for this function:

◆ RandomInit()

RandomInit ( )

Definition at line 696 of file random.cpp.

Here is the caller graph for this function:

◆ SetupEnvironment()

SetupEnvironment ( )

Definition at line 64 of file system.cpp.

◆ SetupWalletToolArgs()

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()

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

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

Here is the call graph for this function:

Variable Documentation

◆ command

const auto command = args.GetCommand()

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

◆ ecc_context

ECC_Context ecc_context {}

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

◆ exit_status

return node exit_status

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

◆ EXIT_SUCCESS

return EXIT_SUCCESS

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

◆ G_TRANSLATION_FUN

const TranslateFn G_TRANSLATION_FUN {nullptr}

Translate string to current locale using Qt.

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 99 of file bitcoin-wallet.cpp.

◆ MAIN_FUNCTION

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

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