mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
core: documentation
This commit is contained in:
parent
764c2520c3
commit
561f0df360
1 changed files with 1 additions and 1 deletions
|
|
@ -243,7 +243,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainReader, header, parent *
|
||||||
if expected.Cmp(header.Difficulty) != 0 {
|
if expected.Cmp(header.Difficulty) != 0 {
|
||||||
return fmt.Errorf("invalid difficulty: have %v, want %v", header.Difficulty, expected)
|
return fmt.Errorf("invalid difficulty: have %v, want %v", header.Difficulty, expected)
|
||||||
}
|
}
|
||||||
// Verify that the gas limit is < 2^63-1
|
// Verify that the gas limit is <= 2^63-1
|
||||||
if header.GasLimit.Cmp(math.MaxBig63) > 0 {
|
if header.GasLimit.Cmp(math.MaxBig63) > 0 {
|
||||||
return fmt.Errorf("invalid gasLimit: have %v, max %v", header.GasLimit, math.MaxBig63)
|
return fmt.Errorf("invalid gasLimit: have %v, max %v", header.GasLimit, math.MaxBig63)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue