From 82cbe6fd71ee1ca9351239607fb228967f04f71d Mon Sep 17 00:00:00 2001 From: kiel barry Date: Tue, 5 Jun 2018 03:31:34 -0700 Subject: [PATCH] params: fix golint warnings (#16853) params: fix golint warnings --- params/config.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/params/config.go b/params/config.go index 9f66c159e9..5e8bfb9f97 100644 --- a/params/config.go +++ b/params/config.go @@ -102,7 +102,8 @@ var ( // that any network, identified by its genesis block, can have its own // set of configuration options. type ChainConfig struct { - ChainID *big.Int `json:"chainID"` // Chain id identifies the current chain and is used for replay protection + + ChainID *big.Int `json:"chainId"` // chainId identifies the current chain and is used for replay protection HomesteadBlock *big.Int `json:"homesteadBlock,omitempty"` // Homestead switch block (nil = no fork, 0 = already homestead) @@ -178,27 +179,27 @@ func (c *ChainConfig) IsDAOFork(num *big.Int) bool { return isForked(c.DAOForkBlock, num) } -// IsEIP150 returns whether num is either equal to the IsEIP150 fork block or greater. +// IsEIP150 returns whether num is either equal to the EIP150 fork block or greater. func (c *ChainConfig) IsEIP150(num *big.Int) bool { return isForked(c.EIP150Block, num) } -// IsEIP155 returns whether num is either equal to the IsEIP155 fork block or greater. +// IsEIP155 returns whether num is either equal to the EIP155 fork block or greater. func (c *ChainConfig) IsEIP155(num *big.Int) bool { return isForked(c.EIP155Block, num) } -// IsEIP158 returns whether num is either equal to the IsEIP158 fork block or greater. +// IsEIP158 returns whether num is either equal to the EIP158 fork block or greater. func (c *ChainConfig) IsEIP158(num *big.Int) bool { return isForked(c.EIP158Block, num) } -// IsByzantium returns whether num is either equal to the IsByzantium fork block or greater. +// IsByzantium returns whether num is either equal to the Byzantium fork block or greater. func (c *ChainConfig) IsByzantium(num *big.Int) bool { return isForked(c.ByzantiumBlock, num) } -// IsConstantinople returns whether num is either equal to the IsConstantinople fork block or greater. +// IsConstantinople returns whether num is either equal to the Constantinople fork block or greater. func (c *ChainConfig) IsConstantinople(num *big.Int) bool { return isForked(c.ConstantinopleBlock, num) }