Skip to content

Commit

Permalink
Clarify switching to/staying in LOCKED_IN state
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Sep 10, 2020
1 parent 4d04c2d commit 77bd404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/feature_block_reward_reallocation.py
Expand Up @@ -117,14 +117,16 @@ def run_test(self):
assert_equal(bi['bip9_softforks']['realloc']['statistics']['threshold'], 396)

self.signal(396, True) # just enough to lock in
self.log.info("Advanced to LOCKED_IN at height = 1999")

self.log.info("Still LOCKED_IN at height = 2498")
for i in range(49):
self.bump_mocktime(10)
self.nodes[0].generate(10)
self.sync_blocks()
self.nodes[0].generate(9)
self.sync_blocks()

self.log.info("Still LOCKED_IN at height = 2498")
bi = self.nodes[0].getblockchaininfo()
assert_equal(bi['blocks'], 2498)
assert_equal(bi['bip9_softforks']['realloc']['status'], 'locked_in')
Expand Down

0 comments on commit 77bd404

Please sign in to comment.