mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-24 14:11:32 +00:00
When deterministic
feature will be enabled (turned-off by default) it'll guarantee deterministic
execution of wasm programs across different hardware/circumstances. This is very useful for Blockchain projects having wasm smart-contracts This is critical for Blockchain projects that require execution to be deterministic in order to reach a consensus of the state transition of each smart-contract transaction.
This commit is contained in:
@ -145,6 +145,9 @@ pub fn validating_parser_config(features: &Features) -> wasmparser::ValidatingPa
|
||||
enable_simd: features.simd,
|
||||
enable_bulk_memory: false,
|
||||
enable_multi_value: false,
|
||||
|
||||
#[cfg(feature = "deterministic")]
|
||||
deterministic_only: true,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
@ -145,6 +145,9 @@ pub fn validate_and_report_errors_with_features(
|
||||
enable_multi_value: false,
|
||||
enable_reference_types: false,
|
||||
enable_threads: features.threads,
|
||||
|
||||
#[cfg(feature = "deterministic")]
|
||||
deterministic_only: true,
|
||||
},
|
||||
};
|
||||
let mut parser = wasmparser::ValidatingParser::new(wasm, Some(config));
|
||||
|
Reference in New Issue
Block a user