Skip to content

Commit

Permalink
remove redundant gaslimit check
Browse files Browse the repository at this point in the history
  • Loading branch information
unclezoro committed Jun 24, 2020
1 parent 4bd4469 commit 6a19c98
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 6a19c98

Please sign in to comment.