Skip to content

Commit

Permalink
Update core/txpool/validation.go
Browse files Browse the repository at this point in the history
Co-authored-by: Raneet Debnath <35629432+Raneet10@users.noreply.github.com>
  • Loading branch information
temaniarpit27 and Raneet10 authored Dec 3, 2023
1 parent 91ff270 commit 9682679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func ValidateTransaction(tx *types.Transaction, blobs []kzg4844.Blob, commits []
return core.ErrTipAboveFeeCap
}
// Make sure the transaction is signed properly
if _, err := types.Sender(signer, tx); err != nil || !opts.AllowUnprotectedTxs {
if _, err := types.Sender(signer, tx); err != nil && !opts.AllowUnprotectedTxs {
return ErrInvalidSender
}
// Ensure the transaction has more gas than the bare minimum needed to cover
Expand Down

0 comments on commit 9682679

Please sign in to comment.