Bitcoin Core  22.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 <core_io.h>
#include <streams.h>
#include <util/system.h>
#include <util/translation.h>
#include <atomic>
#include <cstdio>
#include <functional>
#include <memory>
#include <thread>
#include <boost/algorithm/string.hpp>
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)
 
int main (int argc, char *argv[])
 

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...
 

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:
Here is the caller graph for this function:

◆ Grind()

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

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

Here is the call graph for this function:
Here is the caller 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 82 of file bitcoin-util.cpp.

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

◆ main()

int main ( int  argc,
char *  argv[] 
)

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

Here is the call 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:

Variable Documentation

◆ 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.