Skip to content

Commit

Permalink
test: use f-strings in mining_*.py tests
Browse files Browse the repository at this point in the history
fanquake committed Aug 18, 2021
1 parent c2a5d56 commit 68faa87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/mining_basic.py
Original file line number Diff line number Diff line change
@@ -65,10 +65,10 @@ def mine_chain(self):
assert_equal(mining_info['currentblockweight'], 4000)

self.log.info('test blockversion')
self.restart_node(0, extra_args=['-mocktime={}'.format(t), '-blockversion=1337'])
self.restart_node(0, extra_args=[f'-mocktime={t}', '-blockversion=1337'])
self.connect_nodes(0, 1)
assert_equal(1337, self.nodes[0].getblocktemplate(NORMAL_GBT_REQUEST_PARAMS)['version'])
self.restart_node(0, extra_args=['-mocktime={}'.format(t)])
self.restart_node(0, extra_args=[f'-mocktime={t}'])
self.connect_nodes(0, 1)
assert_equal(VERSIONBITS_TOP_BITS + (1 << VERSIONBITS_DEPLOYMENT_TESTDUMMY_BIT), self.nodes[0].getblocktemplate(NORMAL_GBT_REQUEST_PARAMS)['version'])
self.restart_node(0)

0 comments on commit 68faa87

Please sign in to comment.