Electroneum
Namespaces | Macros | Functions | Variables
cryptonote_core.cpp File Reference
#include <boost/algorithm/string.hpp>
#include "string_tools.h"
#include <unordered_set>
#include "cryptonote_core.h"
#include "common/util.h"
#include "common/updates.h"
#include "common/download.h"
#include "common/threadpool.h"
#include "common/command_line.h"
#include "warnings.h"
#include "crypto/crypto.h"
#include "cryptonote_config.h"
#include "misc_language.h"
#include "file_io_utils.h"
#include <csignal>
#include "checkpoints/checkpoints.h"
#include "ringct/rctTypes.h"
#include "blockchain_db/blockchain_db.h"
#include "ringct/rctSigs.h"
#include "common/notify.h"
#include "version.h"
Include dependency graph for cryptonote_core.cpp:

Namespaces

 cryptonote
 Holds cryptonote related classes and helpers.
 

Macros

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "cn"
 
#define MERROR_VER(x)   MCERROR("verify", x)
 
#define BAD_SEMANTICS_TXES_MAX_SIZE   100
 
#define BLOCK_SIZE_SANITY_LEEWAY   100
 

Functions

static bool cryptonote::is_canonical_bulletproof_layout (const std::vector< rct::Bulletproof > &proofs)
 
block_complete_entry cryptonote::get_block_complete_entry (block &b, tx_memory_pool &pool)
 
double cryptonote::factorial (unsigned int n)
 
static double cryptonote::probability1 (unsigned int blocks, unsigned int expected)
 
static double cryptonote::probability (unsigned int blocks, unsigned int expected)
 

Variables

const command_line::arg_descriptor< bool, falsecryptonote::arg_testnet_on
 
const command_line::arg_descriptor< bool, falsecryptonote::arg_stagenet_on
 
const command_line::arg_descriptor< boolcryptonote::arg_regtest_on
 
const command_line::arg_descriptor< difficulty_type > cryptonote::arg_fixed_difficulty
 
const command_line::arg_descriptor< boolcryptonote::arg_skip_block_sig_verification
 
const command_line::arg_descriptor< std::string, false, true, 2 > cryptonote::arg_data_dir
 
const command_line::arg_descriptor< boolcryptonote::arg_offline
 
const command_line::arg_descriptor< boolcryptonote::arg_disable_dns_checkpoints
 
const command_line::arg_descriptor< size_t > cryptonote::arg_block_download_max_size
 
static const command_line::arg_descriptor< boolcryptonote::arg_test_drop_download
 
static const command_line::arg_descriptor< uint64_t > cryptonote::arg_test_drop_download_height
 
static const command_line::arg_descriptor< int > cryptonote::arg_test_dbg_lock_sleep
 
static const command_line::arg_descriptor< boolcryptonote::arg_dns_checkpoints
 
static const command_line::arg_descriptor< uint64_t > cryptonote::arg_fast_block_sync
 
static const command_line::arg_descriptor< uint64_t > cryptonote::arg_prep_blocks_threads
 
static const command_line::arg_descriptor< uint64_t > cryptonote::arg_show_time_stats
 
static const command_line::arg_descriptor< size_t > cryptonote::arg_block_sync_size
 
static const command_line::arg_descriptor< std::string > cryptonote::arg_check_updates
 
static const command_line::arg_descriptor< boolcryptonote::arg_fluffy_blocks
 
static const command_line::arg_descriptor< boolcryptonote::arg_no_fluffy_blocks
 
static const command_line::arg_descriptor< boolcryptonote::arg_pad_transactions
 
static const command_line::arg_descriptor< size_t > cryptonote::arg_max_txpool_weight
 
static const command_line::arg_descriptor< std::string > cryptonote::arg_block_notify
 
static const command_line::arg_descriptor< boolcryptonote::arg_prune_blockchain
 
static const command_line::arg_descriptor< std::string > cryptonote::arg_reorg_notify
 
static const command_line::arg_descriptor< std::string > cryptonote::arg_block_rate_notify
 
static const command_line::arg_descriptor< std::string > cryptonote::arg_validator_key
 
const command_line::arg_descriptor< boolcryptonote::arg_fallback_to_pow
 
const command_line::arg_descriptor< uint64_t > cryptonote::arg_fallback_to_pow_checkpoint_height
 
const command_line::arg_descriptor< std::string > cryptonote::arg_fallback_to_pow_checkpoint_hash
 

Macro Definition Documentation

◆ BAD_SEMANTICS_TXES_MAX_SIZE

#define BAD_SEMANTICS_TXES_MAX_SIZE   100

◆ BLOCK_SIZE_SANITY_LEEWAY

#define BLOCK_SIZE_SANITY_LEEWAY   100

◆ ELECTRONEUM_DEFAULT_LOG_CATEGORY

#define ELECTRONEUM_DEFAULT_LOG_CATEGORY   "cn"

◆ MERROR_VER

#define MERROR_VER (   x)    MCERROR("verify", x)