Skip to content

Commit 3b7210b

Browse files
authored
Merge branch 'develop' into feat/block-info-handling
2 parents d901503 + faa9678 commit 3b7210b

File tree

4 files changed

+331
-38
lines changed

4 files changed

+331
-38
lines changed

.github/workflows/bitcoin-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ jobs:
119119
- tests::signer::v0::signer_set_rollover
120120
- tests::signer::v0::signing_in_0th_tenure_of_reward_cycle
121121
- tests::signer::v0::continue_after_tenure_extend
122+
- tests::signer::v0::multiple_miners_with_custom_chain_id
122123
- tests::nakamoto_integrations::burn_ops_integration_test
123124
- tests::nakamoto_integrations::check_block_heights
124125
- tests::nakamoto_integrations::clarity_burn_state

stacks-signer/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ pub struct GlobalConfig {
156156
/// How much time to wait for a miner to propose a block following a sortition
157157
pub block_proposal_timeout: Duration,
158158
/// An optional custom Chain ID
159-
chain_id: Option<u32>,
159+
pub chain_id: Option<u32>,
160160
}
161161

162162
/// Internal struct for loading up the config file

testnet/stacks-node/src/config.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,16 @@ impl Config {
550550
&burnchain.pox_constants
551551
);
552552
}
553+
let activation_reward_cycle = burnchain
554+
.block_height_to_reward_cycle(epoch_30.start_height)
555+
.expect("FATAL: Epoch 3.0 starts before the first burnchain block");
556+
if activation_reward_cycle < 2 {
557+
panic!(
558+
"FATAL: Epoch 3.0 must start at or after the second reward cycle. Epoch 3.0 start set to: {}. PoX Parameters: {:?}",
559+
epoch_30.start_height,
560+
&burnchain.pox_constants
561+
);
562+
}
553563
}
554564

555565
/// Connect to the MempoolDB using the configured cost estimation

0 commit comments

Comments
 (0)