Skip to content

Commit

Permalink
fixes for feature_asset_locks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed May 12, 2023
1 parent 8c0f9c4 commit 028af9e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/functional/feature_asset_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,24 +489,24 @@ def run_test(self):
assert_equal(new_total, self.get_credit_pool_amount())
self.check_mempool_size()

self.activate_mn_rr(expected_activation_height=3089)
self.log.info(f'height: {node.getblock(node.getbestblockhash())["height"]} credit: {get_credit_pool_amount(node)}')
self.activate_mn_rr(expected_activation_height=3090)
self.log.info(f'height: {node.getblock(node.getbestblockhash())["height"]} credit: {self.get_credit_pool_amount()}')
reward = 6132959502
assert_equal(new_total, get_credit_pool_amount(node))
assert_equal(new_total, self.get_credit_pool_amount())
node.generate(1)
self.sync_all()
new_total += reward
assert_equal(new_total, get_credit_pool_amount(node))
assert_equal(new_total, self.get_credit_pool_amount())

coin = coins.pop()
self.send_tx(create_assetlock(node, coin, COIN, pubkey))
self.send_tx(self.create_assetlock(coin, COIN, pubkey))
new_total += reward + COIN
node.generate(1)
self.sync_all()
# part of fee is going to master node reward
# these 2 conditions need to check a range
assert_greater_than(get_credit_pool_amount(node), new_total)
assert_greater_than(new_total + tiny_amount, get_credit_pool_amount(node))
assert_greater_than(self.get_credit_pool_amount(), new_total)
assert_greater_than(new_total + tiny_amount, self.get_credit_pool_amount())


if __name__ == '__main__':
Expand Down

0 comments on commit 028af9e

Please sign in to comment.