@@ -90,23 +90,25 @@ func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types
90
90
if tx .GasFeeCapIntCmp (tx .GasTipCap ()) < 0 {
91
91
return core .ErrTipAboveFeeCap
92
92
}
93
- // Make sure the transaction is signed properly
94
- if _ , err := types .Sender (signer , tx ); err != nil {
95
- return ErrInvalidSender
96
- }
97
- // Ensure the transaction has more gas than the bare minimum needed to cover
98
- // the transaction metadata
99
- intrGas , err := core .IntrinsicGas (tx .Data (), tx .AccessList (), tx .To () == nil , true , opts .Config .IsIstanbul (head .Number ), opts .Config .IsShanghai (head .Number , head .Time ))
100
- if err != nil {
101
- return err
102
- }
103
- if tx .Gas () < intrGas {
104
- return fmt .Errorf ("%w: needed %v, allowed %v" , core .ErrIntrinsicGas , intrGas , tx .Gas ())
105
- }
106
- // Ensure the gasprice is high enough to cover the requirement of the calling
107
- // pool and/or block producer
108
- if tx .GasTipCapIntCmp (opts .MinTip ) < 0 {
109
- return fmt .Errorf ("%w: tip needed %v, tip permitted %v" , ErrUnderpriced , opts .MinTip , tx .GasTipCap ())
93
+ if tx .Type () != types .DepositTxType {
94
+ // Make sure the transaction is signed properly
95
+ if _ , err := types .Sender (signer , tx ); err != nil {
96
+ return ErrInvalidSender
97
+ }
98
+ // Ensure the transaction has more gas than the bare minimum needed to cover
99
+ // the transaction metadata
100
+ intrGas , err := core .IntrinsicGas (tx .Data (), tx .AccessList (), tx .To () == nil , true , opts .Config .IsIstanbul (head .Number ), opts .Config .IsShanghai (head .Number , head .Time ))
101
+ if err != nil {
102
+ return err
103
+ }
104
+ if tx .Gas () < intrGas {
105
+ return fmt .Errorf ("%w: needed %v, allowed %v" , core .ErrIntrinsicGas , intrGas , tx .Gas ())
106
+ }
107
+ // Ensure the gasprice is high enough to cover the requirement of the calling
108
+ // pool and/or block producer
109
+ if tx .GasTipCapIntCmp (opts .MinTip ) < 0 {
110
+ return fmt .Errorf ("%w: tip needed %v, tip permitted %v" , ErrUnderpriced , opts .MinTip , tx .GasTipCap ())
111
+ }
110
112
}
111
113
// Ensure blob transactions have valid commitments
112
114
if tx .Type () == types .BlobTxType {
0 commit comments