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

ACP-103: Document and update genesis test fee configs #3520

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

While these are not the final values, this change documents the meanings of each parameter and makes the default values (used in our tests) more useful.

Currently, It is possible for the tx fee to increase instantaneously by a factor of e^200. Which is just not suitable for testing.

How this works

Significantly increases the MaxPerSecond, TargetPerSecond, and ExcessConversionConstant to produce more stable fees (using the same MaxCapacity).

One unit test needed to be modified because it didn't properly account for MaxCapacity.

How this was tested

N/A

Need to be documented in RELEASES.md?

No.

@StephenButtolph StephenButtolph added testing This primarily focuses on testing acp77 acp103 labels Nov 5, 2024
@StephenButtolph StephenButtolph added this to the v1.11.13 milestone Nov 5, 2024
@StephenButtolph StephenButtolph self-assigned this Nov 5, 2024
MaxPerSecond: 250_000,
TargetPerSecond: 125_000, // Target block size ~125KB
MinPrice: 1,
// ExcessConversionConstant = (Capacity - Target) * NumberOfSecondsPerDoubling / ln(2)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(1000000 - 125000) * (30 / ln(2)) is not 5.4 million.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, was supposed to read as Capacity (per second) - Target (per second) (like in the SoV calculations below).

Updated to use the exact names in the config.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(The calculation is: (250_000 - 125_000) * (30 / ln(2))

genesis/genesis_fuji.go Show resolved Hide resolved
genesis/genesis_fuji.go Show resolved Hide resolved
@StephenButtolph StephenButtolph added this pull request to the merge queue Nov 5, 2024
Merged via the queue into master with commit f832985 Nov 5, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the implement-acp-103-document-fee-config branch November 5, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acp77 acp103 testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants