diff --git a/core/tx_pool.go b/core/tx_pool.go index 39e3d35010b5..e7d5062fd523 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -705,6 +705,10 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { if uint64(tx.Size()) > txMaxSize { return ErrOversizedData } + // Reject transactions that cannot fit into a block even as a single transaction + if !pool.chainconfig.Scroll.IsValidBlockSize(tx.Size()) { + return ErrOversizedData + } // Check whether the init code size has been exceeded. if pool.shanghai && tx.To() == nil && len(tx.Data()) > params.MaxInitCodeSize { return fmt.Errorf("%w: code size %v limit %v", ErrMaxInitCodeSizeExceeded, len(tx.Data()), params.MaxInitCodeSize) diff --git a/params/version.go b/params/version.go index eae9a56a9e26..3916379abda9 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 7 // Minor version component of the current release - VersionPatch = 13 // Patch version component of the current release + VersionPatch = 14 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string )