Skip to content

Commit

Permalink
Fix integration test for epoch_duration_target
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Aug 15, 2023
1 parent 459e9ff commit f0ab0a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/src/specs/hardfork/v2021/since.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ impl Spec for CheckAbsoluteEpochSince {
fn modify_chain_spec(&self, spec: &mut ckb_chain_spec::ChainSpec) {
spec.params.permanent_difficulty_in_dummy = Some(true);
spec.params.genesis_epoch_length = Some(GENESIS_EPOCH_LENGTH);
spec.params.epoch_duration_target = Some(8 * GENESIS_EPOCH_LENGTH);
}
}

Expand Down Expand Up @@ -113,6 +114,7 @@ impl Spec for CheckRelativeEpochSince {
fn modify_chain_spec(&self, spec: &mut ckb_chain_spec::ChainSpec) {
spec.params.permanent_difficulty_in_dummy = Some(true);
spec.params.genesis_epoch_length = Some(GENESIS_EPOCH_LENGTH);
spec.params.epoch_duration_target = Some(8 * GENESIS_EPOCH_LENGTH);
}
}

Expand Down
1 change: 1 addition & 0 deletions test/src/specs/hardfork/v2023/vm_version2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ impl Spec for CheckVmVersion2 {
fn modify_chain_spec(&self, spec: &mut ckb_chain_spec::ChainSpec) {
spec.params.permanent_difficulty_in_dummy = Some(true);
spec.params.genesis_epoch_length = Some(GENESIS_EPOCH_LENGTH);
spec.params.epoch_duration_target = Some(8 * GENESIS_EPOCH_LENGTH);
if spec.params.hardfork.is_none() {
spec.params.hardfork = Some(Default::default());
}
Expand Down

0 comments on commit f0ab0a1

Please sign in to comment.