From 3f7b842c9f15ad377392cca874d8a15359789a61 Mon Sep 17 00:00:00 2001 From: FletcherMan Date: Mon, 14 Oct 2024 17:11:17 +0800 Subject: [PATCH] remove tx count validation (#147) * remove tx count validation --------- Co-authored-by: fletcher.fan --- core/block_validator.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/block_validator.go b/core/block_validator.go index b429821cd..01382fd64 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -55,9 +55,6 @@ func (v *BlockValidator) ValidateBody(block *types.Block) error { len(block.Transactions()) > 0 { // we allow the same state root when a block with no transactions return ErrKnownBlock } - if !v.config.Morph.IsValidTxCount(len(block.Transactions())) { - return ErrInvalidTxCount - } // Check if block payload size is smaller than the max size if !v.config.Morph.IsValidBlockSize(block.PayloadSize()) { return ErrInvalidBlockPayloadSize