From 6a19c9803c81ca6c0fce83ec3d4faa6f5cf52665 Mon Sep 17 00:00:00 2001 From: fudongbai <296179868@qq.com> Date: Wed, 24 Jun 2020 16:17:22 +0800 Subject: [PATCH] remove redundant gaslimit check --- consensus/parlia/parlia.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/consensus/parlia/parlia.go b/consensus/parlia/parlia.go index 4338f83e15..304b6f123b 100644 --- a/consensus/parlia/parlia.go +++ b/consensus/parlia/parlia.go @@ -336,10 +336,6 @@ func (p *Parlia) verifyHeader(chain consensus.ChainReader, header *types.Header, if len(header.Extra) < extraVanity+extraSeal { return errMissingSignature } - // Verify that the gasUsed is <= gasLimit - if header.GasUsed > header.GasLimit { - return fmt.Errorf("invalid gasUsed: have %d, gasLimit %d", header.GasUsed, header.GasLimit) - } // check extra data isEpoch := number%p.config.Epoch == 0