Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show All 38 Lines | |||||
* out to a (15*(33+1))+3=513 byte redeemScript, 513+1+15*(73+1)+3=1627 | * out to a (15*(33+1))+3=513 byte redeemScript, 513+1+15*(73+1)+3=1627 | ||||
* bytes of scriptSig, which we round off to 1650 bytes for some minor | * bytes of scriptSig, which we round off to 1650 bytes for some minor | ||||
* future-proofing. That's also enough to spend a 20-of-20 CHECKMULTISIG | * future-proofing. That's also enough to spend a 20-of-20 CHECKMULTISIG | ||||
* scriptPubKey, though such a scriptPubKey is not considered standard. | * scriptPubKey, though such a scriptPubKey is not considered standard. | ||||
*/ | */ | ||||
static const unsigned int MAX_TX_IN_SCRIPT_SIG_SIZE = 1650; | static const unsigned int MAX_TX_IN_SCRIPT_SIG_SIZE = 1650; | ||||
/** | /** | ||||
* Maximum number of signature check operations in an IsStandard() P2SH script. | |||||
*/ | |||||
static const unsigned int MAX_P2SH_SIGOPS = 15; | |||||
/** | |||||
* The maximum number of sigops we're willing to relay/mine in a single tx. | * The maximum number of sigops we're willing to relay/mine in a single tx. | ||||
*/ | */ | ||||
static const unsigned int MAX_STANDARD_TX_SIGOPS = MAX_TX_SIGOPS_COUNT / 5; | static const unsigned int MAX_STANDARD_TX_SIGOPS = MAX_TX_SIGOPS_COUNT / 5; | ||||
/** | /** | ||||
* Default for -maxmempool, maximum megabytes of mempool memory usage. | * Default for -maxmempool, maximum megabytes of mempool memory usage. | ||||
*/ | */ | ||||
static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300; | static const unsigned int DEFAULT_MAX_MEMPOOL_SIZE = 300; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |