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: Finalize parameterization #3549

Open
wants to merge 4 commits into
base: acp-103-finalize-complexities
Choose a base branch
from

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Nov 14, 2024

Why this should be merged

This PR finalizes the ACP-103 parametrization.

How this works

Capacity             = 1_000_000 gas
CapacityTimeToRefill = 10s

MaxGasPerSecond      = Capacity / CapacityTimeToRefill = 100_000 gas/second
TargetGasPerSecond   = MaxGasPerSecond / 2             =  50_000 gas/second

MaxBlockBytes   = 1_000_000 bytes
MaxBlockReads   =     1_000 reads
MaxBlockWrites  =     1_000 writes
MaxBlockCompute =   250_000 micro-seconds

GasPerByte        = Capacity / MaxBlockBytes   =     1 gas/byte
GasPerDBRead      = Capacity / MaxBlockReads   = 1_000 gas/read
GasPerDBWrite     = Capacity / MaxBlockWrites  = 1_000 gas/write
GasPerComputeTime = Capacity / MaxBlockCompute =     4 gas/micro-second

How this was tested

Need to be documented in RELEASES.md?

@StephenButtolph StephenButtolph marked this pull request as ready for review November 14, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Review 👀
Development

Successfully merging this pull request may close these issues.

3 participants