Skip to content

feat(anvil): API to disable sidecar requirement for eip4844 transaction #9924

@polka125

Description

@polka125

Component

Anvil

Describe the feature you would like

Currently, when submitting an eip4844 transaction without sidecar, it gets discarded with the message

{"code":-32003,"message":"eip4844 tx variant without sidecar being used for verification."}

Due to the checks here

// It is not valid to receive a TxEip4844 without a sidecar, therefore

                    // It is not valid to receive a TxEip4844 without a sidecar, therefore
                    // we must reject it.
                    TxEip4844Variant::TxEip4844(_) => {
                        return Err(BlockchainError::FailedToDecodeTransaction)
                    }

Sometimes, it is desirable to skip this check in the spirit of the --auto-impersonate flag, for example when simulating the execution of old blocks with no access to the blob data.

Would it be possible to add a flag for disabling the sidecar checks on submitting a raw eip4844 transaction?

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Completed

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions