MCPcopy Create free account
hub / github.com/ElementsProject/elements / mine_chain

Method mine_chain

test/functional/rpc_blockchain.py:89–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

87 assert self.nodes[0].verifychain(4, 0)
88
89 def mine_chain(self):
90 self.log.info(f"Generate {HEIGHT} blocks after the genesis block in ten-minute steps")
91 for t in range(TIME_GENESIS_BLOCK, TIME_RANGE_END, TIME_RANGE_STEP):
92 self.nodes[0].setmocktime(t)
93 self.generate(self.wallet, 1)
94 assert_equal(self.nodes[0].getblockchaininfo()['blocks'], HEIGHT)
95
96 def _test_max_future_block_time(self):
97 self.stop_node(0)

Callers 1

run_testMethod · 0.95

Calls 4

assert_equalFunction · 0.90
infoMethod · 0.80
setmocktimeMethod · 0.80
generateMethod · 0.45

Tested by

no test coverage detected