Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_feature_minerfund.py
Show All 37 Lines | def run_test(self): | ||||
self.log.info('Create some history') | self.log.info('Create some history') | ||||
for _ in range(0, 50): | for _ in range(0, 50): | ||||
node.generatetoaddress(1, address) | node.generatetoaddress(1, address) | ||||
node = self.nodes[0] | node = self.nodes[0] | ||||
address = node.get_deterministic_priv_key().address | address = node.get_deterministic_priv_key().address | ||||
# Move MTP forward to phonon activation | # Move MTP forward to axion activation | ||||
node.setmocktime(AXION_ACTIVATION_TIME) | node.setmocktime(AXION_ACTIVATION_TIME) | ||||
node.generatetoaddress(6, address) | node.generatetoaddress(6, address) | ||||
assert_equal( | assert_equal( | ||||
node.getblockchaininfo()['mediantime'], | node.getblockchaininfo()['mediantime'], | ||||
AXION_ACTIVATION_TIME) | AXION_ACTIVATION_TIME) | ||||
# Let's remember the hash of this block for later use. | # Let's remember the hash of this block for later use. | ||||
fork_block_hash = int(node.getbestblockhash(), 16) | fork_block_hash = int(node.getbestblockhash(), 16) | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |