Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/test_framework.py
Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | def _initialize_chain(self): | ||||
self.nodes[i].extend_default_args( | self.nodes[i].extend_default_args( | ||||
["-gravitonactivationtime={}".format(TIMESTAMP_IN_THE_PAST)]) | ["-gravitonactivationtime={}".format(TIMESTAMP_IN_THE_PAST)]) | ||||
self.start_node(i) | self.start_node(i) | ||||
# Wait for RPC connections to be ready | # Wait for RPC connections to be ready | ||||
for node in self.nodes: | for node in self.nodes: | ||||
node.wait_for_rpc_connection() | node.wait_for_rpc_connection() | ||||
# For backwared compatibility of the python scripts with previous | # For backward compatibility of the python scripts with previous | ||||
# versions of the cache, set mocktime to Jan 1, | # versions of the cache, set mocktime to Jan 1, | ||||
# 2014 + (201 * 10 * 60) | # 2014 + (201 * 10 * 60) | ||||
self.mocktime = 1388534400 + (201 * 10 * 60) | self.mocktime = 1388534400 + (201 * 10 * 60) | ||||
# Create a 200-block-long chain; each of the 4 first nodes | # Create a 200-block-long chain; each of the 4 first nodes | ||||
# gets 25 mature blocks and 25 immature. | # gets 25 mature blocks and 25 immature. | ||||
# Note: To preserve compatibility with older versions of | # Note: To preserve compatibility with older versions of | ||||
# initialize_chain, only 4 nodes will generate coins. | # initialize_chain, only 4 nodes will generate coins. | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |