Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/consensus.h
Show All 12 Lines | |||||
/** The maximum allowed size for a transaction, in bytes */ | /** The maximum allowed size for a transaction, in bytes */ | ||||
static const uint64_t MAX_TX_SIZE = ONE_MEGABYTE; | static const uint64_t MAX_TX_SIZE = ONE_MEGABYTE; | ||||
/** The minimum allowed size for a transaction, in bytes */ | /** The minimum allowed size for a transaction, in bytes */ | ||||
static const uint64_t MIN_TX_SIZE = 100; | static const uint64_t MIN_TX_SIZE = 100; | ||||
/** The maximum allowed size for a block, before the UAHF */ | /** The maximum allowed size for a block, before the UAHF */ | ||||
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; | ||||
/** allowed number of signature check operations (sigops) per transaction. */ | |||||
static const uint64_t MAX_TX_SIGOPS_COUNT = 20000; | |||||
/** Allowed number of signature check operations per transaction. */ | /** Allowed number of signature check operations per transaction. */ | ||||
static const uint64_t MAX_TX_SIGCHECKS = 3000; | static const uint64_t MAX_TX_SIGCHECKS = 3000; | ||||
/** | /** | ||||
* The ratio between the maximum allowable block size and the maximum allowable | * The ratio between the maximum allowable block size and the maximum allowable | ||||
* SigChecks (executed signature check operations) in the block. (network rule). | * SigChecks (executed signature check operations) in the block. (network rule). | ||||
*/ | */ | ||||
static const int BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO = 141; | static const int BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO = 141; | ||||
/** | /** | ||||
Show All 25 Lines |