Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/cdefs.py
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
# 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) | ||||
MAX_BLOCK_SIGOPS_PER_MB = 20000 | MAX_BLOCK_SIGOPS_PER_MB = 20000 | ||||
# The maximum allowed number of signature check operations per transaction | # The maximum allowed number of signature check operations per transaction | ||||
# (network rule) | # (network rule) | ||||
MAX_TX_SIGOPS_COUNT = 20000 | MAX_TX_SIGOPS_COUNT = 20000 | ||||
# The minimum number of max_block_size bytes required per executed signature | |||||
# check operation in a block. I.e. maximum_block_sigchecks = maximum_block_size | |||||
# / BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO (network rule). | |||||
BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO = 141 | |||||
# 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 | ||||
# (policy.h constant) | # (policy.h constant) | ||||
MAX_STANDARD_TX_SIGOPS = MAX_TX_SIGOPS_COUNT // 5 | MAX_STANDARD_TX_SIGOPS = MAX_TX_SIGOPS_COUNT // 5 | ||||
# 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) | ||||
COINBASE_MATURITY = 100 | COINBASE_MATURITY = 100 | ||||
Show All 12 Lines |