We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22edaac commit 25a70e8Copy full SHA for 25a70e8
consensus/XDPoS/engines/engine_v2/verifyHeader.go
@@ -64,7 +64,8 @@ func (x *XDPoS_v2) verifyHeader(chain consensus.ChainReader, header *types.Heade
64
}
65
66
// Ensure gas limit is consistent with parent
67
- if err := misc.VerifyGaslimit(parent.GasLimit, header.GasLimit); err != nil {
+ err := misc.VerifyGaslimit(parent.GasLimit, header.GasLimit)
68
+ if err != nil && parent.Number.Uint64() != 0 { // skip genesis block
69
return err
70
71
// Ensure gas used is less than or equal to gas limit
0 commit comments