Changeset View
Changeset View
Standalone View
Standalone View
test/functional/mining_basic.py
Show All 40 Lines | rsp = node.getblocktemplate( | ||||
'mode': 'proposal'}) | 'mode': 'proposal'}) | ||||
assert_equal(rsp, expect) | assert_equal(rsp, expect) | ||||
class MiningTest(BitcoinTestFramework): | class MiningTest(BitcoinTestFramework): | ||||
def set_test_params(self): | def set_test_params(self): | ||||
self.num_nodes = 2 | self.num_nodes = 2 | ||||
self.setup_clean_chain = True | self.setup_clean_chain = True | ||||
self.supports_cli = False | |||||
def mine_chain(self): | def mine_chain(self): | ||||
self.log.info('Create some old blocks') | self.log.info('Create some old blocks') | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
address = node.get_deterministic_priv_key().address | address = node.get_deterministic_priv_key().address | ||||
for t in range(TIME_GENESIS_BLOCK, | for t in range(TIME_GENESIS_BLOCK, | ||||
TIME_GENESIS_BLOCK + 200 * 600, 600): | TIME_GENESIS_BLOCK + 200 * 600, 600): | ||||
node.setmocktime(t) | node.setmocktime(t) | ||||
▲ Show 20 Lines • Show All 243 Lines • Show Last 20 Lines |