-
Notifications
You must be signed in to change notification settings - Fork 291
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
LocalCluster - rename, refactor consts, verify initial transfers #4437
Conversation
@@ -1432,7 +1432,7 @@ pub mod test { | |||
initialize_and_add_secondary_indexes(&mut validator_config); | |||
let num_nodes = 1; | |||
let mut config = ClusterConfig { | |||
cluster_lamports: 10_000_000, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could probably get rid of all these lower values as well...I can't imagine there's anything special about these that require lower mint lamports
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could either do them in this PR, or just up them if these tests fail once fees are added.
@@ -278,10 +280,18 @@ impl LocalCluster { | |||
stake, | |||
)) | |||
} else { | |||
required_mint_lamports += Self::required_validator_funding(*stake); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
working on making local cluster tests (and all tests) have fees.
This line will change as we need to add additional lamports to pay for fees.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem
Additional context: #4394 - I'm removing the special-casing in our fee-calculation for zero fees in tests. This requires some changes in several places, including local-cluster tests. Splitting these changes out to make the fee-related changes simpler to do.
Summary of Changes
cluster_lamports
is not the total cluster lamports...its' themint_lamports
. Change the name