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

txpool: add more cases to return err instead of panicking on invalid Txn cases #14093

Merged
merged 2 commits into from
Mar 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions txnprovider/txpool/txpoolcfg/txpoolcfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ func (r DiscardReason) String() string {
return "EIP-7702 transactions with an empty authorization list are invalid"
case GasLimitTooHigh:
return "gas limit is too high"
case BlobHashCheckFail:
return "KZGcommitment's versioned hash has to be equal to blob_versioned_hash at the same index"
default:
panic(fmt.Sprintf("discard reason: %d", r))
}
Expand Down
Loading