mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-30 07:48:09 +08:00
Merge branch 'next' into feat/portable-build
This commit is contained in:
@@ -6082,6 +6082,7 @@ fn pox_integration_test() {
|
||||
let http_origin = format!("http://{}", &conf.node.rpc_bind);
|
||||
|
||||
btc_regtest_controller.bootstrap_chain(201);
|
||||
let burnchain = burnchain_config.clone();
|
||||
|
||||
eprintln!("Chain bootstrapped...");
|
||||
|
||||
@@ -6139,9 +6140,12 @@ fn pox_integration_test() {
|
||||
pox_info.rejection_fraction,
|
||||
Some(pox_constants.pox_rejection_fraction)
|
||||
);
|
||||
assert_eq!(pox_info.reward_cycle_id, 0);
|
||||
assert_eq!(pox_info.current_cycle.id, 0);
|
||||
assert_eq!(pox_info.next_cycle.id, 1);
|
||||
let reward_cycle = burnchain
|
||||
.block_height_to_reward_cycle(sort_height)
|
||||
.expect("Expected to be able to get reward cycle");
|
||||
assert_eq!(pox_info.reward_cycle_id, reward_cycle);
|
||||
assert_eq!(pox_info.current_cycle.id, reward_cycle);
|
||||
assert_eq!(pox_info.next_cycle.id, reward_cycle + 1);
|
||||
assert_eq!(
|
||||
pox_info.reward_cycle_length as u32,
|
||||
pox_constants.reward_cycle_length
|
||||
@@ -6184,6 +6188,9 @@ fn pox_integration_test() {
|
||||
}
|
||||
|
||||
let pox_info = get_pox_info(&http_origin).unwrap();
|
||||
let reward_cycle = burnchain
|
||||
.block_height_to_reward_cycle(sort_height)
|
||||
.expect("Expected to be able to get reward cycle");
|
||||
|
||||
assert_eq!(
|
||||
&pox_info.contract_id,
|
||||
@@ -6207,9 +6214,9 @@ fn pox_integration_test() {
|
||||
pox_info.rejection_fraction,
|
||||
Some(pox_constants.pox_rejection_fraction)
|
||||
);
|
||||
assert_eq!(pox_info.reward_cycle_id, 14);
|
||||
assert_eq!(pox_info.current_cycle.id, 14);
|
||||
assert_eq!(pox_info.next_cycle.id, 15);
|
||||
assert_eq!(pox_info.reward_cycle_id, reward_cycle);
|
||||
assert_eq!(pox_info.current_cycle.id, reward_cycle);
|
||||
assert_eq!(pox_info.next_cycle.id, reward_cycle + 1);
|
||||
assert_eq!(
|
||||
pox_info.reward_cycle_length as u32,
|
||||
pox_constants.reward_cycle_length
|
||||
|
||||
Reference in New Issue
Block a user