Skip to content

Commit

Permalink
chore: remove hybrid trigger (FuelLabs#1250)
Browse files Browse the repository at this point in the history
`Trigger::Hybrid` has been removed from the core for quite a while. This
removes leftover code from when we supported it.
  • Loading branch information
MujkicA authored Jan 24, 2024
1 parent 42000da commit 84697a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
18 changes: 0 additions & 18 deletions packages/fuels-test-helpers/src/fuel_bin_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,24 69,6 @@ impl ExtendedConfig {
block_time.as_millis()
));
}
Trigger::Hybrid {
min_block_time,
max_tx_idle_time,
max_block_time,
} => {
args.push(format!(
"--poa-hybrid-min-time={}ms",
min_block_time.as_millis()
));
args.push(format!(
"--poa-hybrid-idle-time={}ms",
max_tx_idle_time.as_millis()
));
args.push(format!(
"--poa-hybrid-max-time={}ms",
max_block_time.as_millis()
));
}
};

args.extend(
Expand Down
10 changes: 1 addition & 9 deletions packages/fuels-test-helpers/src/node_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 17,7 @@ const MAX_DATABASE_CACHE_SIZE: usize = 10 * 1024 * 1024;
pub enum Trigger {
Instant,
Never,
Interval {
block_time: Duration,
},
Hybrid {
min_block_time: Duration,
max_tx_idle_time: Duration,
max_block_time: Duration,
},
Interval { block_time: Duration },
}

#[cfg(feature = "fuel-core-lib")]
Expand All @@ -34,7 27,6 @@ impl From<Trigger> for fuel_core_poa::Trigger {
Trigger::Instant => fuel_core_poa::Trigger::Instant,
Trigger::Never => fuel_core_poa::Trigger::Never,
Trigger::Interval { block_time } => fuel_core_poa::Trigger::Interval { block_time },
_ => value.into(),
}
}
}
Expand Down

0 comments on commit 84697a7

Please sign in to comment.