Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasmtime: remove lightbeam support code #11529

Merged
merged 1 commit into from
Jun 13, 2024
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
6 changes: 0 additions & 6 deletions runtime/near-vm-runner/src/wasmtime_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,11 @@ impl IntoVMError for anyhow::Error {
}
}

#[cfg(not(feature = "lightbeam"))]
#[allow(clippy::needless_pass_by_ref_mut)]
pub fn get_engine(config: &mut wasmtime::Config) -> Engine {
Engine::new(config).unwrap()
}

#[cfg(feature = "lightbeam")]
pub fn get_engine(config: &mut wasmtime::Config) -> Engine {
Engine::new(config.strategy(wasmtime::Strategy::Lightbeam).unwrap()).unwrap()
}

pub(crate) fn wasmtime_vm_hash() -> u64 {
// TODO: take into account compiler and engine used to compile the contract.
64
Expand Down
6 changes: 0 additions & 6 deletions runtime/runtime-params-estimator/compiler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ if [ "$1" == "wasmtime" ]; then
VMKIND="$1";
features="$features"
fi
if [ "$1" == "lightbeam" ]; then
VMKIND="wasmtime"
features="$features,lightbeam"
fi



set -ex

Expand Down
2 changes: 1 addition & 1 deletion runtime/runtime-params-estimator/estimate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ features="required"

if [[ ! -z "$1" ]]; then
features="$features,$1"
if [[ "$1" == *"wasmtime"* || "$1" == *"lightbeam"* ]]; then
if [[ "$1" == *"wasmtime"* ]]; then
vmkind="wasmtime";
fi
fi
Expand Down
Loading