Skip to content

Commit f6d50c5

Browse files
committed
Have get nakamoto headers return only the unique block ids and increase the reward length
Signed-off-by: Jacinta Ferrant <[email protected]>
1 parent 50c723a commit f6d50c5

File tree

1 file changed

+2
-1
lines changed
  • testnet/stacks-node/src/tests/signer

1 file changed

+2
-1
lines changed

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,6 +1481,7 @@ fn multiple_miners() {
14811481
config.node.p2p_address = format!("{localhost}:{node_1_p2p}");
14821482
config.miner.wait_on_interim_blocks = Duration::from_secs(5);
14831483
config.node.pox_sync_sample_secs = 30;
1484+
config.burnchain.pox_reward_length = Some(30);
14841485

14851486
config.node.seed = btc_miner_1_seed.clone();
14861487
config.node.local_peer_seed = btc_miner_1_seed.clone();
@@ -1664,7 +1665,7 @@ fn multiple_miners() {
16641665
/// Read processed nakamoto block IDs from the test observer, and use `config` to open
16651666
/// a chainstate DB and returns their corresponding StacksHeaderInfos
16661667
fn get_nakamoto_headers(config: &Config) -> Vec<StacksHeaderInfo> {
1667-
let nakamoto_block_ids: Vec<_> = test_observer::get_blocks()
1668+
let nakamoto_block_ids: HashSet<_> = test_observer::get_blocks()
16681669
.into_iter()
16691670
.filter_map(|block_json| {
16701671
if block_json

0 commit comments

Comments
 (0)