Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/cdefs.py
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if mainmod_path and mainmod_path.endswith('.py'): | ||||
return maybe_top | return maybe_top | ||||
# No luck, give up. | # No luck, give up. | ||||
return None | return None | ||||
# Slurp in consensus.h contents | # Slurp in consensus.h contents | ||||
_consensus_h_fh = open(os.path.join(get_srcdir(), 'src', 'consensus', | _consensus_h_fh = open(os.path.join(get_srcdir(), 'src', 'consensus', | ||||
'consensus.h'), 'rt') | 'consensus.h'), 'rt', encoding='utf-8') | ||||
_consensus_h_contents = _consensus_h_fh.read() | _consensus_h_contents = _consensus_h_fh.read() | ||||
_consensus_h_fh.close() | _consensus_h_fh.close() | ||||
# This constant is currently needed to evaluate some that are formulas | # This constant is currently needed to evaluate some that are formulas | ||||
ONE_MEGABYTE = 1000000 | ONE_MEGABYTE = 1000000 | ||||
# Extract relevant default values parameters | # Extract relevant default values parameters | ||||
Show All 40 Lines |