Skip to content

Commit 5539b01

Browse files
random-zebraFuzzbawls
authored andcommitted
[Tests] Restore p2p_zpos_fakestake
- fix test with updated rpc functions and chain params - re add it to test_runner Github-Pull: #1218 Rebased-From: 78e2def
1 parent 8f84377 commit 5539b01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/functional/fake_stake/base_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def test_spam(self, name, staking_utxo_list,
258258

259259
# Get staking prevouts and stake block (use DUMMY_KEY "" to stake)
260260
current_block_n = randomCount + 1
261-
stakeInputs = get_prevouts(self.node, staking_utxo_list, fZPoS, current_block_n)
261+
stakeInputs = get_prevouts(self.node, staking_utxo_list, fZPoS, randomCount)
262262
block = stake_block(current_block_n, pastBlockHash, self.node,
263263
stakeInputs, None, "", block_txes, fDoubleSpend)
264264

test/functional/p2p_zpos_fakestake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def run_test(self):
2121
self.init_test()
2222

2323
DENOM_TO_USE = 5000 # zc denomination
24-
INITAL_MINED_BLOCKS = 321 # First mined blocks (rewards collected to mint)
25-
MORE_MINED_BLOCKS = 301 # More blocks mined before spending zerocoins
24+
INITAL_MINED_BLOCKS = 330 # First mined blocks (rewards collected to mint)
25+
MORE_MINED_BLOCKS = 25 # More blocks mined before spending zerocoins
2626
self.NUM_BLOCKS = 2 # Number of spammed blocks
2727

2828
# 1) Starting mining blocks
@@ -72,7 +72,7 @@ def run_test(self):
7272
mint_arg = []
7373
mint_arg.append(mint)
7474
try:
75-
self.node.spendzerocoinmints(mint_arg)
75+
self.node.spendzerocoinmints(mint_arg, "", False)
7676
sleep(1)
7777
spends += 1
7878
spent_mints.append(mint)

test/functional/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
'p2p_pos_fakestake.py',
7575
'p2p_pos_fakestake_accepted.py',
7676
'zerocoin_valid_public_spend.py',
77-
#'p2p_zpos_fakestake.py',
77+
'p2p_zpos_fakestake.py',
7878
#'p2p_zpos_fakestake_accepted.py',
7979
#'zerocoin_wrapped_serials.py',
8080
#'feature_block.py',

0 commit comments

Comments
 (0)