Skip to content

Commit a039345

Browse files
committed
test: activate mn_rr in feature_asset_locks.py for better performance
1 parent 75de576 commit a039345

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/feature_asset_locks.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def set_test_params(self):
5555
"-whitelist=127.0.0.1",
5656
"-llmqtestinstantsenddip0024=llmq_test_instantsend",
5757
]] * 2, evo_count=2)
58-
self.mn_rr_height = 620
58+
self.mn_rr_height = 560
5959

6060
def skip_test_if_missing_module(self):
6161
self.skip_if_no_wallet()
@@ -623,7 +623,7 @@ def test_withdrawal_limits(self, node_wallet, node, pubkey):
623623
def test_mn_rr(self, node_wallet, node, pubkey):
624624
self.log.info("Activate mn_rr...")
625625
locked = self.get_credit_pool_balance()
626-
self.activate_mn_rr(expected_activation_height=620)
626+
self.activate_mn_rr(expected_activation_height=560)
627627
self.log.info(f'mn-rr height: {node.getblockcount()} credit: {self.get_credit_pool_balance()}')
628628
assert_equal(locked, self.get_credit_pool_balance())
629629

@@ -635,7 +635,7 @@ def test_mn_rr(self, node_wallet, node, pubkey):
635635
all_mn_rewards = platform_reward + owner_reward + operator_reward
636636
assert_equal(all_mn_rewards, bt['coinbasevalue'] * 3 // 4) # 75/25 mn/miner reward split
637637
assert_equal(platform_reward, all_mn_rewards * 375 // 1000) # 0.375 platform share
638-
assert_equal(platform_reward, 104549943)
638+
assert_equal(platform_reward, 112592247)
639639
assert_equal(locked, self.get_credit_pool_balance())
640640
self.generate(node, 1)
641641
locked += platform_reward
@@ -650,6 +650,7 @@ def test_mn_rr(self, node_wallet, node, pubkey):
650650

651651
def test_withdrawals_fork(self, node_wallet, node, pubkey):
652652
self.log.info("Testing asset unlock after 'withdrawals' activation...")
653+
self.activate_by_name('withdrawals', 600)
653654
assert softfork_active(node_wallet, 'withdrawals')
654655
self.log.info(f'post-withdrawals height: {node.getblockcount()} credit: {self.get_credit_pool_balance()}')
655656

0 commit comments

Comments
 (0)