Skip to content

Conversation

@blockchaindevsh
Copy link
Collaborator

The release branch is checked out from the latest optimism branch.

This PR adds cgt related changes for the initial release.

EIP1559Denominator uint64 `json:"eip1559Denominator"`
EIP1559DenominatorCanyon *uint64 `json:"eip1559DenominatorCanyon,omitempty"`
// The multiplier of the L1BaseFeeScalar, used to keep the L1BaseFeeScalar size compatible with uint32 and calculate the effective L1BaseFeeScalar;
// Only effective when the value is non-zero

Choose a reason for hiding this comment

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

Add a . at the end of each comment.


costFunc(emptyTx.RollupCostData(), math2.MaxUint64-1 /*math2.MaxUint64 is used as a special mark in NewL1CostFunc, so minus 1*/)

require.Equal(t, params.L1ScalarMultipliersCalled, true)

Choose a reason for hiding this comment

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

Why not pass these two parameters directly into conf.Optimism = &OptimismConfig{EIP1559Elasticity: 50, EIP1559Denominator: 10, EIP1559DenominatorCanyon: uint64ptr(250)}, and check whether the return values of costFunc for both params are greater than 0?
That way, we wouldn’t need to stub the L1ScalarMultipliersCalled flag in the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants