From db59a6d98844f78d3c4f039db975a5acc3756f83 Mon Sep 17 00:00:00 2001 From: alan <652732310@qq.com> Date: Tue, 29 Apr 2025 00:07:52 +0800 Subject: [PATCH] chore: re-use `rules.IsPrague` instead of compute again --- core/txpool/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/validation.go b/core/txpool/validation.go index e370f2ce84..beb4fa1e68 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -120,7 +120,7 @@ func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types return fmt.Errorf("%w: gas %v, minimum needed %v", core.ErrIntrinsicGas, tx.Gas(), intrGas) } // Ensure the transaction can cover floor data gas. - if opts.Config.IsPrague(head.Number, head.Time) { + if rules.IsPrague { floorDataGas, err := core.FloorDataGas(tx.Data()) if err != nil { return err