Skip to content

Commit

Permalink
Add explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ilitteri committed Jan 14, 2025
1 parent c30d8ec commit e9297f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/vm/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,14 @@ pub fn execute_block(
) -> Result<BlockExecutionOutput, EvmError> {
match evm {
EVM::LEVM => {
// "levm" feature today exists for the only purpose of making the
// prover crate work successfully, and it is configured in such a way
// that from a user perspective this does not to be handled manually.
// The feature is part of the crate's default features so the prover
// can successfully import the crate disabling the default features,
// and so the user does not need to worry about handling it manually.
// In the future, the levm crate should be adapted so it can be
// compiled by the prover crate and the levm feature can be removed.
cfg_if::cfg_if! {
if #[cfg(feature = "levm")] {
levm::execute_block(block, state)
Expand Down

0 comments on commit e9297f4

Please sign in to comment.