Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/cdefs.py
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | |||||
# 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 | ||||
# Anti replay OP_RETURN commitment. | # Minimum size a transaction can have. | ||||
ANTI_REPLAY_COMMITMENT = b"Bitcoin: A Peer-to-Peer Electronic Cash System" | MIN_TX_SIZE = 100 | ||||
if __name__ == "__main__": | if __name__ == "__main__": | ||||
# Output values if run standalone to verify | # Output values if run standalone to verify | ||||
print("DEFAULT_MAX_BLOCK_SIZE = %d (bytes)" % DEFAULT_MAX_BLOCK_SIZE) | print("DEFAULT_MAX_BLOCK_SIZE = %d (bytes)" % DEFAULT_MAX_BLOCK_SIZE) | ||||
print("MAX_BLOCK_SIGOPS_PER_MB = %d (sigops)" % MAX_BLOCK_SIGOPS_PER_MB) | print("MAX_BLOCK_SIGOPS_PER_MB = %d (sigops)" % MAX_BLOCK_SIGOPS_PER_MB) | ||||
print("MAX_TX_SIGOPS_COUNT = %d (sigops)" % MAX_TX_SIGOPS_COUNT) | print("MAX_TX_SIGOPS_COUNT = %d (sigops)" % MAX_TX_SIGOPS_COUNT) | ||||
print("COINBASE_MATURITY = %d (blocks)" % COINBASE_MATURITY) | print("COINBASE_MATURITY = %d (blocks)" % COINBASE_MATURITY) |