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

v2.0: deplete compute meter for vm errors (backport of #3751 and #3994) #4296

Closed
wants to merge 6 commits into from

Conversation

jstarry
Copy link

@jstarry jstarry commented Jan 6, 2025

Problem

Implements solana-foundation/solana-improvement-documents#182 by making sure that programs that fail with VM errors consume the remaining compute budget to simplify compute unit handling. Uses new feature gate.

Summary of Changes

  • Consume remaining compute budget for all VM errors except those that originate from syscalls
  • Add new feature gate for cu depletion

Feature Gate Issue: #3993

jstarry and others added 5 commits January 6, 2025 05:25
* feat: deplete compute meter for vm errors

* add tests

* rekey apply_cost_tracker_during_replay

(cherry picked from commit b120fc1)

# Conflicts:
#	programs/sbf/tests/programs.rs
#	sdk/src/feature_set.rs
@jstarry jstarry requested a review from a team as a code owner January 6, 2025 05:32
Copy link

mergify bot commented Jan 6, 2025

The Firedancer team maintains a line-for-line reimplementation of the
native programs, and until native programs are moved to BPF, those
implementations must exactly match their Agave counterparts.
If this PR represents a change to a native program implementation (not
tests), please include a reviewer from the Firedancer team. And please
keep refactors to a minimum.

@jstarry jstarry requested a review from Lichtso January 6, 2025 08:32
@t-nelson
Copy link

sorry, missed this before. no

Screenshot 2025-01-11 at 11 16 40 AM

@willhickey
Copy link

Closing this one... Re-open individual BPs if needed. V2.0 should be EOL in about 3 weeks

@willhickey willhickey closed this Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants