Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/consensus.h
Show All 17 Lines | |||||
static const uint64_t LEGACY_MAX_BLOCK_SIZE = ONE_MEGABYTE; | static const uint64_t LEGACY_MAX_BLOCK_SIZE = ONE_MEGABYTE; | ||||
/** Default setting for maximum allowed size for a block, in bytes */ | /** Default setting for maximum allowed size for a block, in bytes */ | ||||
static const uint64_t DEFAULT_MAX_BLOCK_SIZE = 32 * ONE_MEGABYTE; | static const uint64_t DEFAULT_MAX_BLOCK_SIZE = 32 * ONE_MEGABYTE; | ||||
/** | /** | ||||
* The maximum allowed number of signature check operations per MB in a block | * The maximum allowed number of signature check operations per MB in a block | ||||
* (network rule). | * (network rule). | ||||
*/ | */ | ||||
static const int64_t MAX_BLOCK_SIGOPS_PER_MB = 20000; | static const int64_t MAX_BLOCK_SIGOPS_PER_MB = 20000; | ||||
/** allowed number of signature check operations per transaction. */ | /** allowed number of parsed signature check operations per transaction. */ | ||||
static const uint64_t MAX_TX_SIGOPS_COUNT = 20000; | static const uint64_t MAX_TX_SIGOPS_COUNT = 20000; | ||||
/** allowed number of executed signature check operations per transaction. */ | |||||
static const int MAX_TX_SIGCHECKS_COUNT = 20000; | |||||
/** | /** | ||||
* Coinbase transaction outputs can only be spent after this number of new | * Coinbase transaction outputs can only be spent after this number of new | ||||
* blocks (network rule). | * blocks (network rule). | ||||
*/ | */ | ||||
static const int COINBASE_MATURITY = 100; | static const int COINBASE_MATURITY = 100; | ||||
/** Coinbase scripts have their own script size limit. */ | /** Coinbase scripts have their own script size limit. */ | ||||
static const int MAX_COINBASE_SCRIPTSIG_SIZE = 100; | static const int MAX_COINBASE_SCRIPTSIG_SIZE = 100; | ||||
Show All 18 Lines |