Skip to content

Commit 395fe95

Browse files
Fix tests that have reward cycle starting on boundary. Still need to fix pox_treatment
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 6da8514 commit 395fe95

File tree

1 file changed

+5
-5
lines changed
  • stackslib/src/chainstate/nakamoto/coordinator

1 file changed

+5
-5
lines changed

stackslib/src/chainstate/nakamoto/coordinator/tests.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ fn block_descendant() {
938938
.collect::<Vec<_>>();
939939
let test_signers = TestSigners::new(vec![signing_key]);
940940
let mut pox_constants = TestChainstateConfig::default().burnchain.pox_constants;
941-
pox_constants.reward_cycle_length = 10;
941+
pox_constants.reward_cycle_length = 8;
942942
pox_constants.v2_unlock_height = 21;
943943
pox_constants.pox_3_activation_height = 26;
944944
pox_constants.v3_unlock_height = 27;
@@ -1027,7 +1027,7 @@ fn block_info_tests(use_primary_testnet: bool) {
10271027
.collect::<Vec<_>>();
10281028
let test_signers = TestSigners::new(vec![signing_key]);
10291029
let mut pox_constants = TestChainstateConfig::default().burnchain.pox_constants;
1030-
pox_constants.reward_cycle_length = 10;
1030+
pox_constants.reward_cycle_length = 8;
10311031
pox_constants.v2_unlock_height = 21;
10321032
pox_constants.pox_3_activation_height = 26;
10331033
pox_constants.v3_unlock_height = 27;
@@ -1462,7 +1462,7 @@ fn pox_treatment() {
14621462
.collect::<Vec<_>>();
14631463
let test_signers = TestSigners::new(vec![signing_key]);
14641464
let mut pox_constants = TestChainstateConfig::default().burnchain.pox_constants;
1465-
pox_constants.reward_cycle_length = 10;
1465+
pox_constants.reward_cycle_length = 8;
14661466
pox_constants.v2_unlock_height = 21;
14671467
pox_constants.pox_3_activation_height = 26;
14681468
pox_constants.v3_unlock_height = 27;
@@ -1780,7 +1780,7 @@ fn transactions_not_indexing() {
17801780
.collect::<Vec<_>>();
17811781
let test_signers = TestSigners::new(vec![signing_key]);
17821782
let mut pox_constants = TestChainstateConfig::default().burnchain.pox_constants;
1783-
pox_constants.reward_cycle_length = 10;
1783+
pox_constants.reward_cycle_length = 8;
17841784
pox_constants.v2_unlock_height = 21;
17851785
pox_constants.pox_3_activation_height = 26;
17861786
pox_constants.v3_unlock_height = 27;
@@ -3893,7 +3893,7 @@ fn process_next_nakamoto_block_deadlock() {
38933893
.collect::<Vec<_>>();
38943894
let test_signers = TestSigners::new(vec![signing_key]);
38953895
let mut pox_constants = TestChainstateConfig::default().burnchain.pox_constants;
3896-
pox_constants.reward_cycle_length = 10;
3896+
pox_constants.reward_cycle_length = 8;
38973897
pox_constants.v2_unlock_height = 21;
38983898
pox_constants.pox_3_activation_height = 26;
38993899
pox_constants.v3_unlock_height = 27;

0 commit comments

Comments
 (0)