Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
bitcoin-util.cpp File Reference
#include <bitcoin-build-config.h>
#include <arith_uint256.h>
#include <chain.h>
#include <chainparams.h>
#include <chainparamsbase.h>
#include <clientversion.h>
#include <common/args.h>
#include <common/system.h>
#include <compat/compat.h>
#include <core_io.h>
#include <streams.h>
#include <util/exception.h>
#include <util/strencodings.h>
#include <util/translation.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, uint32_t offset, uint32_t step, std::atomic< bool > &found, uint32_t &proposed_nonce)
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 TranslateFn G_TRANSLATION_FUN {nullptr}
 Translate string to current locale using Qt.
 MAIN_FUNCTION
 try
const auto cmd = args.GetCommand()
int ret = EXIT_FAILURE
std::string strPrint

Function Documentation

◆ AppInitUtil()

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 165 of file bitcoin-util.cpp.

◆ catch() [2/2]

catch ( const std::exception & e)

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

◆ Grind()

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

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

Here is the call graph for this function:

◆ grind_task()

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

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

Here is the call graph for this function:

◆ if() [2/2]

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

◆ SetupBitcoinUtilArgs()

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 64 of file system.cpp.

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

Variable Documentation

◆ cmd

const auto cmd = args.GetCommand()

Definition at line 170 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 TranslateFn G_TRANSLATION_FUN {nullptr}

Translate string to current locale using Qt.

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

◆ MAIN_FUNCTION

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

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

◆ ret

int ret = EXIT_FAILURE

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

◆ strPrint

std::string strPrint

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