From 561f0df3608dae7f6e275dfbbed8c8566f2a0ec5 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Thu, 4 May 2017 12:14:57 +0200 Subject: [PATCH] core: documentation --- consensus/ethash/consensus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index cc8413482d..2930032e5e 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -243,7 +243,7 @@ func (ethash *Ethash) verifyHeader(chain consensus.ChainReader, header, parent * if expected.Cmp(header.Difficulty) != 0 { 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 { return fmt.Errorf("invalid gasLimit: have %v, max %v", header.GasLimit, math.MaxBig63) }