Skip to content

Commit 82cbe6f

Browse files
committed
params: fix golint warnings (ethereum#16853)
params: fix golint warnings
1 parent ece0d13 commit 82cbe6f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

params/config.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ var (
102102
// that any network, identified by its genesis block, can have its own
103103
// set of configuration options.
104104
type ChainConfig struct {
105-
ChainID *big.Int `json:"chainID"` // Chain id identifies the current chain and is used for replay protection
105+
106+
ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection
106107

107108
HomesteadBlock *big.Int `json:"homesteadBlock,omitempty"` // Homestead switch block (nil = no fork, 0 = already homestead)
108109

@@ -178,27 +179,27 @@ func (c *ChainConfig) IsDAOFork(num *big.Int) bool {
178179
return isForked(c.DAOForkBlock, num)
179180
}
180181

181-
// IsEIP150 returns whether num is either equal to the IsEIP150 fork block or greater.
182+
// IsEIP150 returns whether num is either equal to the EIP150 fork block or greater.
182183
func (c *ChainConfig) IsEIP150(num *big.Int) bool {
183184
return isForked(c.EIP150Block, num)
184185
}
185186

186-
// IsEIP155 returns whether num is either equal to the IsEIP155 fork block or greater.
187+
// IsEIP155 returns whether num is either equal to the EIP155 fork block or greater.
187188
func (c *ChainConfig) IsEIP155(num *big.Int) bool {
188189
return isForked(c.EIP155Block, num)
189190
}
190191

191-
// IsEIP158 returns whether num is either equal to the IsEIP158 fork block or greater.
192+
// IsEIP158 returns whether num is either equal to the EIP158 fork block or greater.
192193
func (c *ChainConfig) IsEIP158(num *big.Int) bool {
193194
return isForked(c.EIP158Block, num)
194195
}
195196

196-
// IsByzantium returns whether num is either equal to the IsByzantium fork block or greater.
197+
// IsByzantium returns whether num is either equal to the Byzantium fork block or greater.
197198
func (c *ChainConfig) IsByzantium(num *big.Int) bool {
198199
return isForked(c.ByzantiumBlock, num)
199200
}
200201

201-
// IsConstantinople returns whether num is either equal to the IsConstantinople fork block or greater.
202+
// IsConstantinople returns whether num is either equal to the Constantinople fork block or greater.
202203
func (c *ChainConfig) IsConstantinople(num *big.Int) bool {
203204
return isForked(c.ConstantinopleBlock, num)
204205
}

0 commit comments

Comments
 (0)