Skip to content

Commit f62d01c

Browse files
core/txpool: removed unnecessary method
1 parent 6c6c1c1 commit f62d01c

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

core/txpool/txpool.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,17 +337,6 @@ func (p *TxPool) HasBlobs(vhashes []common.Hash) bool {
337337
return false
338338
}
339339

340-
// ValidateTxBasics checks whether a transaction is valid according to the consensus
341-
// rules, but does not check state-dependent validation such as sufficient balance.
342-
func (p *TxPool) ValidateTxBasics(tx *types.Transaction) error {
343-
for _, subpool := range p.subpools {
344-
if subpool.Filter(tx) {
345-
return subpool.ValidateTxBasics(tx)
346-
}
347-
}
348-
return fmt.Errorf("%w: received type %d", core.ErrTxTypeNotSupported, tx.Type())
349-
}
350-
351340
// Add enqueues a batch of transactions into the pool if they are valid. Due
352341
// to the large transaction churn, add may postpone fully integrating the tx
353342
// to a later point to batch multiple ones together.

eth/catalyst/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func (api *ConsensusAPI) GetPayloadV4(payloadID engine.PayloadID) (*engine.Execu
454454
return api.getPayload(payloadID, false)
455455
}
456456

457-
// GetPayloadV4 returns a cached payload by id.
457+
// GetPayloadV5 returns a cached payload by id.
458458
func (api *ConsensusAPI) GetPayloadV5(payloadID engine.PayloadID) (*engine.ExecutionPayloadEnvelope, error) {
459459
if !payloadID.Is(engine.PayloadV3) {
460460
return nil, engine.UnsupportedFork

0 commit comments

Comments
 (0)