mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-07 03:02:20 +00:00
Merge pull request #11 from guagualvcha/gas_limit
[R4R]remove redundant gaslimit check
This commit is contained in:
commit
11bc803884
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user