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.1: feat: deplete compute meter for vm errors (backport of #3751) #3955

Open
wants to merge 5 commits into
base: v2.1
Choose a base branch
from

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Dec 5, 2024

Problem

Implements SIMD-0182 by making sure that programs that fail with VM errors consume the remaining compute budget to simplify compute unit handling.

Summary of Changes

  • Consume remaining compute budget for all VM errors except those that originate from syscalls
  • Use existing replay cost tracker feature gate
  • Rekey replay cost tracker feature gate

Feature Gate Issue: solana-labs#29595


This is an automatic backport of pull request #3751 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner December 5, 2024 20:05
@mergify mergify bot added the feature-gate Pull Request adds or modifies a runtime feature gate label Dec 5, 2024
@mergify mergify bot assigned jstarry Dec 5, 2024
Copy link
Author

mergify bot commented Dec 5, 2024

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.

t-nelson
t-nelson previously approved these changes Dec 6, 2024
@bw-solana bw-solana force-pushed the mergify/bp/v2.1/pr-3751 branch 3 times, most recently from d2d43b7 to 3dd7668 Compare December 11, 2024 20:00
jstarry and others added 5 commits December 11, 2024 20:40
* feat: deplete compute meter for vm errors

* add tests

* rekey apply_cost_tracker_during_replay

(cherry picked from commit b120fc1)
@bw-solana bw-solana force-pushed the mergify/bp/v2.1/pr-3751 branch from bc001d0 to 4893047 Compare December 12, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-gate Pull Request adds or modifies a runtime feature gate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants