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

Add feature gate to use default units per instruction for fee calculation #26786

Conversation

tao-stones
Copy link
Contributor

@tao-stones tao-stones commented Jul 26, 2022

Problem

When bank calculates transaction fee, it's hardcoded to not to use default units per instruction, which is a feature already enabled in mainnet-beta. It should use default units.

Summary of Changes

Add feature to pass false (current behavior) when feature is not enabled, and true (desired behavior) when feature is enabled.

Feature Gate Issue: #26785

@tao-stones tao-stones requested review from jackcmay and jstarry July 26, 2022 04:31
@tao-stones tao-stones added the automerge Merge this Pull Request automatically once CI passes label Jul 26, 2022
@mergify mergify bot merged commit 5e622f8 into solana-labs:master Jul 26, 2022
@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Jul 26, 2022
@mergify
Copy link
Contributor

mergify bot commented Jul 26, 2022

automerge label removed due to a CI failure

@tao-stones tao-stones deleted the feature-gate-use-default-unit-in-fee-calculation branch July 26, 2022 20:14
@jstarry jstarry added the feature-gate Pull Request adds or modifies a runtime feature gate label Aug 6, 2022
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