Changeset View
Changeset View
Standalone View
Standalone View
src/policy/policy.h
Show All 26 Lines | |||||
static const unsigned int MAX_STANDARD_TX_SIZE = 100000; | static const unsigned int MAX_STANDARD_TX_SIZE = 100000; | ||||
/** Maximum number of signature check operations in an IsStandard() P2SH script | /** Maximum number of signature check operations in an IsStandard() P2SH script | ||||
*/ | */ | ||||
static const unsigned int MAX_P2SH_SIGOPS = 15; | 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; | ||||
/** Default for -incrementalrelayfee, which sets the minimum feerate increase | |||||
* for mempool limiting or BIP 125 replacement **/ | |||||
static const Amount DEFAULT_INCREMENTAL_RELAY_FEE(1000); | |||||
/** Default for -bytespersigop */ | /** Default for -bytespersigop */ | ||||
static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20; | static const unsigned int DEFAULT_BYTES_PER_SIGOP = 20; | ||||
/** The maximum number of witness stack items in a standard P2WSH script */ | /** The maximum number of witness stack items in a standard P2WSH script */ | ||||
static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEMS = 100; | static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEMS = 100; | ||||
/** The maximum size of each witness stack item in a standard P2WSH script */ | /** The maximum size of each witness stack item in a standard P2WSH script */ | ||||
static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEM_SIZE = 80; | static const unsigned int MAX_STANDARD_P2WSH_STACK_ITEM_SIZE = 80; | ||||
/** The maximum size of a standard witnessScript */ | /** The maximum size of a standard witnessScript */ | ||||
static const unsigned int MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3600; | static const unsigned int MAX_STANDARD_P2WSH_SCRIPT_SIZE = 3600; | ||||
Show All 39 Lines | |||||
* Check for standard transaction types | * Check for standard transaction types | ||||
* @param[in] mapInputs Map of previous transactions that have outputs we're | * @param[in] mapInputs Map of previous transactions that have outputs we're | ||||
* spending | * spending | ||||
* @return True if all inputs (scriptSigs) use only standard transaction forms | * @return True if all inputs (scriptSigs) use only standard transaction forms | ||||
*/ | */ | ||||
bool AreInputsStandard(const CTransaction &tx, | bool AreInputsStandard(const CTransaction &tx, | ||||
const CCoinsViewCache &mapInputs); | const CCoinsViewCache &mapInputs); | ||||
extern CFeeRate incrementalRelayFee; | |||||
extern CFeeRate dustRelayFee; | extern CFeeRate dustRelayFee; | ||||
extern unsigned int nBytesPerSigOp; | extern unsigned int nBytesPerSigOp; | ||||
#endif // BITCOIN_POLICY_POLICY_H | #endif // BITCOIN_POLICY_POLICY_H |