We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assert_valid_epoch_settings
1 parent 26d7aaf commit 8e097efCopy full SHA for 8e097ef
testnet/stacks-node/src/config.rs
@@ -608,7 +608,8 @@ impl Config {
608
let _ = StacksEpoch::validate_epochs(epochs);
609
610
// sanity check: v1_unlock_height must happen after pox-2 instantiation
611
- let epoch21_index = StacksEpochId::Epoch21.index();
+ let epoch21_index = StacksEpoch::find_epoch_by_id(&epochs, StacksEpochId::Epoch21)
612
+ .expect("FATAL: no epoch 2.1 defined");
613
let epoch21 = &epochs[epoch21_index];
614
let v1_unlock_height = burnchain.pox_constants.v1_unlock_height as u64;
615
0 commit comments