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
refactor(config): consolidate scroll flags #262
Conversation
6ad4822
to
57c7eee
Compare
7708d06
to
0bc0b32
Compare
not sure which version number should I use? |
I'd consider this a backward compatible change (using l2geth on non-scroll networks was not supported anyway). So bump path or no bump is enough. |
// Scroll genesis extension: enable scroll rollup-related traces & state transition | ||
// TODO: merge with these config: Zktrie, FeeVaultAddress, EnableEIP2718, EnableEIP1559 & MaxTxPerBlock | ||
UsingScroll bool `json:"usingScroll,omitempty"` | ||
func (s ScrollConfig) L1FeeEnabled() bool { |
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.
The function name is a bit inaccurate. Using fee vault & enable L1 fee is different. Fee vault collects the tx fee that includes both L2 exec fee and L1 rollup fee, right?
if api.backend.ChainConfig().UsingScroll { | ||
blockTrace.WithdrawTrieRoot = withdrawtrie.ReadWTRSlot(rcfg.L2MessageQueueAddress, env.state) | ||
} | ||
blockTrace.WithdrawTrieRoot = withdrawtrie.ReadWTRSlot(rcfg.L2MessageQueueAddress, env.state) |
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.
This is not controlled by any config now. Is it compatible with other geth configs?
baseFee & EIP-2718 & EIP-1559 related PRs:
we can also move
FeeVaultAddress
intorollup/rcfg/config.go
, but that's a bigger refactor so can be left for future