Skip to content

Commit

Permalink
Merge pull request #11 from guagualvcha/gas_limit
Browse files Browse the repository at this point in the history
[R4R]remove redundant gaslimit check
  • Loading branch information
unclezoro authored Jun 24, 2020
2 parents 9f1aaec + 6a19c98 commit 11bc803
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 11bc803

Please sign in to comment.