-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore(core): disable 4844 transactions by default #28
Conversation
5756385
to
d4991ee
Compare
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.
do we need to change the code like this? how does op-geth disable 4844? Can we make the 4844 enabled at a very large block number in just iliad configuration to avoid code level change?
if !opts.Config.Is4844Enabled() && tx.Type() == types.BlobTxType { | ||
return core.ErrTxTypeNotSupported |
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.
I guess this is the part where blob tx is disabled and error is printed out without panic?
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.
Correct
cmd/geth/config.go
Outdated
@@ -183,6 +183,11 @@ func makeFullNode(ctx *cli.Context) *node.Node { | |||
cfg.Eth.OverrideStoryNostoi = &v | |||
} | |||
|
|||
if ctx.IsSet(utils.Override4844Flag.Name) { |
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.
Probably better to just completely disable blob tx without having an option to enable it. We can enable later by changing the code. We don't want nodes to have different behaviors
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.
if possible, reject it earlier
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.
removed the flags and overrides
// Is4844Enabled checks whether blob transactions are supported. | ||
func (c *ChainConfig) Is4844Enabled() bool { | ||
return false | ||
} |
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.
Can we directly remove it? We want to minimize the changes in geth repo so it is easier for us to incorporate changes from geth main repo.
* chore(core): disable 4844 support by default
Ensures that 4844 transactions are by default not supported, with the ability to override this setting in the future.
fixes #16