Skip to content

Commit

Permalink
remove tx count validation (#147)
Browse files Browse the repository at this point in the history
* remove tx count validation

---------

Co-authored-by: fletcher.fan <[email protected]>
  • Loading branch information
FletcherMan and fletcher.fan authored Oct 14, 2024
1 parent d5897cc commit d702fab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/block_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d702fab

Please sign in to comment.