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

Persist stateless block in AVM state #1305

Merged
merged 2 commits into from
Apr 7, 2023
Merged

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Apr 7, 2023

Why this should be merged

We expect the AVM state to only reference stateless blocks. Currently we can wrap the same block multiple times or reference a stateful block when we expect it to be stateless. This isn't actually a correctness issue... But can cause unnecessary memory pressure + unnecessary function calls + unexpected json serialization.

How this works

Persist the stateless block rather than the stateful block during verification.

How this was tested

Added unit test that was failing and now passes. Also manually replicated the incorrect API behavior and verified it doesn't happen on this version.

@StephenButtolph StephenButtolph self-assigned this Apr 7, 2023
@StephenButtolph StephenButtolph added bug Something isn't working vm This involves virtual machines labels Apr 7, 2023
@StephenButtolph StephenButtolph added this to the v1.10.0 (Cortina) milestone Apr 7, 2023
@StephenButtolph StephenButtolph marked this pull request as ready for review April 7, 2023 17:40
@StephenButtolph StephenButtolph merged commit d66eb8a into dev Apr 7, 2023
14 checks passed
@StephenButtolph StephenButtolph deleted the persist-statelessblock branch April 7, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vm This involves virtual machines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants