Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions crates/iota-benchmark/tests/simtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ mod test {
test_simulated_load(test_cluster, 60).await;
}

#[ignore("https://github.com/iotaledger/iota/issues/11438")]
#[sim_test(config = "test_config()")]
Comment thread
thibault-martinez marked this conversation as resolved.
async fn test_mainnet_config() {
chain_config_smoke_test(Chain::Mainnet).await;
Expand All @@ -124,7 +123,8 @@ mod test {

async fn chain_config_smoke_test(chain: Chain) {
iota_protocol_config::ProtocolConfig::poison_get_for_min_version();
let test_cluster = init_test_cluster_builder(2, 3000)
// 2 validators, 10 seconds per epoch.
let test_cluster = init_test_cluster_builder(2, 10_000)
.with_authority_overload_config(AuthorityOverloadConfig {
// Disable system overload checks for the test - during tests with crashes,
// it is possible for overload protection to trigger due to validators
Expand All @@ -148,7 +148,7 @@ mod test {
#[sim_test(config = "test_config()")]
async fn test_simulated_load_with_accumulator_v2_partial_upgrade() {
iota_protocol_config::ProtocolConfig::poison_get_for_min_version();
let test_cluster = init_test_cluster_builder(4, 1000)
let test_cluster = init_test_cluster_builder(4, 10_000)
.with_authority_overload_config(AuthorityOverloadConfig {
// Disable system overload checks for the test - during tests with crashes,
// it is possible for overload protection to trigger due to validators
Expand Down Expand Up @@ -356,7 +356,7 @@ mod test {
#[sim_test(config = "test_config()")]
async fn test_simulated_load_reconfig_with_prune_and_compact() {
iota_protocol_config::ProtocolConfig::poison_get_for_min_version();
let test_cluster = build_test_cluster(4, 1000, 0).await;
let test_cluster = build_test_cluster(4, 10_000, 0).await;

let node_state = test_cluster.fullnode_handle.iota_node.clone().state();
register_fail_point_async("prune-and-compact", move || {
Expand All @@ -376,7 +376,7 @@ mod test {
register_fail_point_if("select-random-cache", || true);

let test_cluster = Arc::new(
init_test_cluster_builder(4, 1000)
init_test_cluster_builder(4, 10_000)
.with_num_unpruned_validators(4)
.build()
.await,
Expand Down Expand Up @@ -657,7 +657,7 @@ mod test {
async fn test_data_ingestion_pipeline() {
let path = nondeterministic!(TempDir::new().unwrap()).keep();
let test_cluster = Arc::new(
init_test_cluster_builder(4, 5000)
init_test_cluster_builder(4, 10_000)
.with_data_ingestion_dir(path.clone())
.build()
.await,
Expand Down
4 changes: 2 additions & 2 deletions crates/iota-node/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ impl IotaNode {
let transaction = ConsensusTransaction::new_capability_notification_v1(
AuthorityCapabilitiesV1::new(
self.state.name,
cur_epoch_store.get_chain_identifier().chain(),
cur_epoch_store.get_chain(),
self.config
.supported_protocol_versions
.expect("Supported versions should be populated")
Expand Down Expand Up @@ -2047,7 +2047,7 @@ impl IotaNode {
// Create the capability notification
let capabilities = AuthorityCapabilitiesV1::new(
self.state.name,
epoch_store.get_chain_identifier().chain(),
epoch_store.get_chain(),
self.config
.supported_protocol_versions
.expect("Supported versions should be populated")
Expand Down
Loading