Bitcoin Core  24.99.0
P2P Digital Currency
Functions | Variables
bitcoin-util.cpp File Reference
#include <arith_uint256.h>
#include <chain.h>
#include <chainparams.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <compat/compat.h>
#include <core_io.h>
#include <streams.h>
#include <util/system.h>
#include <util/translation.h>
#include <version.h>
#include <atomic>
#include <cstdio>
#include <functional>
#include <memory>
#include <thread>
Include dependency graph for bitcoin-util.cpp:

Go to the source code of this file.

Functions

static void SetupBitcoinUtilArgs (ArgsManager &argsman)
 
static int AppInitUtil (ArgsManager &args, int argc, char *argv[])
 
static void grind_task (uint32_t nBits, CBlockHeader &header_orig, uint32_t offset, uint32_t step, std::atomic< bool > &found)
 
static int Grind (const std::vector< std::string > &args, std::string &strPrint)
 
 SetupEnvironment ()
 
 if (ret !=CONTINUE_EXECUTION)
 
 catch (const std::exception &e)
 
 catch (...)
 
 if (!cmd)
 

Variables

static const int CONTINUE_EXECUTION =-1
 
const std::function< std::string(const char *)> G_TRANSLATION_FUN = nullptr
 Translate string to current locale using Qt. More...
 
 MAIN_FUNCTION
 
 try
 
const auto cmd = args.GetCommand()
 
int ret = EXIT_FAILURE
 
std::string strPrint
 

Function Documentation

◆ AppInitUtil()

static int AppInitUtil ( ArgsManager args,
int  argc,
char *  argv[] 
)
static

Definition at line 44 of file bitcoin-util.cpp.

Here is the call graph for this function:

◆ catch() [1/2]

catch (   ...)

Definition at line 159 of file bitcoin-util.cpp.

◆ catch() [2/2]

catch ( const std::exception &  e)

Definition at line 156 of file bitcoin-util.cpp.

◆ Grind()

static int Grind ( const std::vector< std::string > &  args,
std::string &  strPrint 
)
static

Definition at line 111 of file bitcoin-util.cpp.

Here is the call graph for this function:

◆ grind_task()

static void grind_task ( uint32_t  nBits,
CBlockHeader header_orig,
uint32_t  offset,
uint32_t  step,
std::atomic< bool > &  found 
)
static

Definition at line 85 of file bitcoin-util.cpp.

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

◆ if() [1/2]

if ( cmd)

Definition at line 165 of file bitcoin-util.cpp.

Here is the call graph for this function:

◆ if() [2/2]

if ( ret = CONTINUE_EXECUTION)

Definition at line 153 of file bitcoin-util.cpp.

Here is the caller graph for this function:

◆ SetupBitcoinUtilArgs()

static void SetupBitcoinUtilArgs ( ArgsManager argsman)
static

Definition at line 31 of file bitcoin-util.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.

Here is the caller graph for this function:

Variable Documentation

◆ cmd

const auto cmd = args.GetCommand()

Definition at line 164 of file bitcoin-util.cpp.

◆ CONTINUE_EXECUTION

const int CONTINUE_EXECUTION =-1
static

Definition at line 27 of file bitcoin-util.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-util.cpp.

◆ MAIN_FUNCTION

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

Definition at line 146 of file bitcoin-util.cpp.

◆ ret

int ret = EXIT_FAILURE

Definition at line 170 of file bitcoin-util.cpp.

◆ strPrint

std::string strPrint

Definition at line 171 of file bitcoin-util.cpp.

◆ try

try
Initial value:
{
int ret = AppInitUtil(args, argc, argv)
int ret
static int AppInitUtil(ArgsManager &args, int argc, char *argv[])

Definition at line 151 of file bitcoin-util.cpp.