Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
#define MIN_TRANSACTION_SIZE \ | #define MIN_TRANSACTION_SIZE \ | ||||
(::GetSerializeSize(CTransaction(), PROTOCOL_VERSION)) | (::GetSerializeSize(CTransaction(), PROTOCOL_VERSION)) | ||||
/** Maximum number of dedicated script-checking threads allowed */ | /** Maximum number of dedicated script-checking threads allowed */ | ||||
static const int MAX_SCRIPTCHECK_THREADS = 15; | 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; | ||||
static const int64_t DEFAULT_MAX_TIP_AGE = 24 * 60 * 60; | |||||
static const bool DEFAULT_CHECKPOINTS_ENABLED = true; | static const bool DEFAULT_CHECKPOINTS_ENABLED = true; | ||||
static const bool DEFAULT_PEERBLOOMFILTERS = true; | static const bool DEFAULT_PEERBLOOMFILTERS = true; | ||||
/** Default for -stopatheight */ | /** Default for -stopatheight */ | ||||
static const int DEFAULT_STOPATHEIGHT = 0; | static const int DEFAULT_STOPATHEIGHT = 0; | ||||
/** | /** | ||||
* Block files containing a block-height within MIN_BLOCKS_TO_KEEP of | * Block files containing a block-height within MIN_BLOCKS_TO_KEEP of | ||||
Show All 23 Lines | |||||
extern GlobalMutex g_best_block_mutex; | extern GlobalMutex g_best_block_mutex; | ||||
extern std::condition_variable g_best_block_cv; | extern std::condition_variable g_best_block_cv; | ||||
/** Used to notify getblocktemplate RPC of new tips. */ | /** Used to notify getblocktemplate RPC of new tips. */ | ||||
extern uint256 g_best_block; | extern uint256 g_best_block; | ||||
extern bool fCheckBlockIndex; | extern bool fCheckBlockIndex; | ||||
extern bool fCheckpointsEnabled; | extern bool fCheckpointsEnabled; | ||||
/** | /** | ||||
* If the tip is older than this (in seconds), the node is considered to be in | |||||
* initial block download. | |||||
*/ | |||||
extern int64_t nMaxTipAge; | |||||
/** | |||||
* Block hash whose ancestors we will assume to have valid scripts without | * Block hash whose ancestors we will assume to have valid scripts without | ||||
* checking them. | * checking them. | ||||
*/ | */ | ||||
extern BlockHash hashAssumeValid; | extern BlockHash hashAssumeValid; | ||||
/** | /** | ||||
* Minimum work we will assume exists on some valid chain. | * Minimum work we will assume exists on some valid chain. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 1,374 Lines • Show Last 20 Lines |