Changeset View
Changeset View
Standalone View
Standalone View
qa/rpc-tests/test_framework/cdefs.py
| Show All 29 Lines | |||||
| # The following consensus parameters should not be automatically imported. | # The following consensus parameters should not be automatically imported. | ||||
| # They *should* cause test failures if application code is changed in ways | # They *should* cause test failures if application code is changed in ways | ||||
| # that violate current consensus. | # that violate current consensus. | ||||
| # 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 | ||||
| # Allowed number of signature check operations per transaction | # The maximum allowed number of signature check operations per transaction | ||||
| # (network rule) | |||||
| MAX_TX_SIGOPS_COUNT = 20000 | MAX_TX_SIGOPS_COUNT = 20000 | ||||
| # 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 | ||||
| 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) | ||||