Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; | static const unsigned int DEFAULT_MEMPOOL_EXPIRY = 336; | ||||
/** The maximum size of a blk?????.dat file (since 0.8) */ | /** The maximum size of a blk?????.dat file (since 0.8) */ | ||||
static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB | static const unsigned int MAX_BLOCKFILE_SIZE = 0x8000000; // 128 MiB | ||||
/** The pre-allocation chunk size for blk?????.dat files (since 0.8) */ | /** The pre-allocation chunk size for blk?????.dat files (since 0.8) */ | ||||
static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB | static const unsigned int BLOCKFILE_CHUNK_SIZE = 0x1000000; // 16 MiB | ||||
/** The pre-allocation chunk size for rev?????.dat files (since 0.8) */ | /** The pre-allocation chunk size for rev?????.dat files (since 0.8) */ | ||||
static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB | static const unsigned int UNDOFILE_CHUNK_SIZE = 0x100000; // 1 MiB | ||||
/** Maximum number of script-checking threads allowed */ | /** Maximum number of dedicated script-checking threads allowed */ | ||||
static const int MAX_SCRIPTCHECK_THREADS = 16; | static const int MAX_SCRIPTCHECK_THREADS = 15; | ||||
/** -par default (number of script-checking threads, 0 = auto) */ | /** -par default (number of script-checking threads, 0 = auto) */ | ||||
static const int DEFAULT_SCRIPTCHECK_THREADS = 0; | static const int DEFAULT_SCRIPTCHECK_THREADS = 0; | ||||
/** | /** | ||||
* Number of blocks that can be requested at any given time from a single peer. | * Number of blocks that can be requested at any given time from a single peer. | ||||
*/ | */ | ||||
static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 16; | static const int MAX_BLOCKS_IN_TRANSIT_PER_PEER = 16; | ||||
/** | /** | ||||
* Timeout in seconds during which a peer must stall block download progress | * Timeout in seconds during which a peer must stall block download progress | ||||
▲ Show 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | |||||
extern CScript COINBASE_FLAGS; | extern CScript COINBASE_FLAGS; | ||||
extern RecursiveMutex cs_main; | extern RecursiveMutex cs_main; | ||||
extern CTxMemPool g_mempool; | extern CTxMemPool g_mempool; | ||||
extern Mutex g_best_block_mutex; | extern Mutex g_best_block_mutex; | ||||
extern std::condition_variable g_best_block_cv; | extern std::condition_variable g_best_block_cv; | ||||
extern uint256 g_best_block; | extern uint256 g_best_block; | ||||
extern std::atomic_bool fImporting; | extern std::atomic_bool fImporting; | ||||
extern std::atomic_bool fReindex; | extern std::atomic_bool fReindex; | ||||
extern int nScriptCheckThreads; | |||||
extern bool fRequireStandard; | extern bool fRequireStandard; | ||||
extern bool fCheckBlockIndex; | extern bool fCheckBlockIndex; | ||||
extern bool fCheckpointsEnabled; | extern bool fCheckpointsEnabled; | ||||
extern size_t nCoinCacheUsage; | extern size_t nCoinCacheUsage; | ||||
/** | /** | ||||
* A fee rate smaller than this is considered zero fee (for relaying, mining and | * A fee rate smaller than this is considered zero fee (for relaying, mining and | ||||
* transaction creation) | * transaction creation) | ||||
▲ Show 20 Lines • Show All 823 Lines • Show Last 20 Lines |