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

chore(core): disable 4844 transactions by default #28

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

leeren
Copy link
Contributor

@leeren leeren commented Oct 8, 2024

Ensures that 4844 transactions are by default not supported, with the ability to override this setting in the future.

fixes #16

@leeren leeren force-pushed the chore/disable-blob-transactions branch from 5756385 to d4991ee Compare October 8, 2024 23:26
Copy link
Member

@LeoHChen LeoHChen left a 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?

Comment on lines +57 to +58
if !opts.Config.Is4844Enabled() && tx.Type() == types.BlobTxType {
return core.ErrTxTypeNotSupported
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct

@@ -183,6 +183,11 @@ func makeFullNode(ctx *cli.Context) *node.Node {
cfg.Eth.OverrideStoryNostoi = &v
}

if ctx.IsSet(utils.Override4844Flag.Name) {
Copy link
Contributor

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

Copy link
Member

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

Copy link
Contributor Author

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

Comment on lines +823 to +826
// Is4844Enabled checks whether blob transactions are supported.
func (c *ChainConfig) Is4844Enabled() bool {
return false
}
Copy link
Contributor

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.

@leeren leeren merged commit c37eb4c into iliad Oct 9, 2024
@leeren leeren deleted the chore/disable-blob-transactions branch October 9, 2024 18:59
leeren added a commit that referenced this pull request Oct 15, 2024
* chore(core): disable 4844 support by default
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