Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Refactor - Move Executable out of EbpfVm #475

Merged
merged 2 commits into from
Jun 28, 2023

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Jun 27, 2023

This allows a VM to be shared across an entire transaction.

@Lichtso Lichtso requested a review from alessandrod June 27, 2023 17:07
@Lichtso Lichtso force-pushed the refactor/move_executable_out_of_vm branch from d6ec582 to fc6fb3a Compare June 27, 2023 18:13
Copy link

@alessandrod alessandrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good so I'm approving. I'd prefer V removed from EbpfVm but ultimately doesn't really matter if you don't feel like doing it and waiting for CI again :P

src/vm.rs Outdated
/// Runtime state
pub env: RuntimeEnvironment<'a, C>,
/// Programs must have passed this verifier to be executed
_verifier: PhantomData<V>,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove this, move the V bound to new and then it becomes impossible
to create EbpfVm for a non-verified program? Then we can remove one generic
argument from EbpfVm

@Lichtso Lichtso force-pushed the refactor/move_executable_out_of_vm branch from fc6fb3a to a750ad5 Compare June 28, 2023 14:55
@Lichtso Lichtso merged commit 7d6d761 into main Jun 28, 2023
@Lichtso Lichtso deleted the refactor/move_executable_out_of_vm branch June 28, 2023 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants