Skip to content

Commit

Permalink
params: fix golint warnings (ethereum#16853)
Browse files Browse the repository at this point in the history
params: fix golint warnings
  • Loading branch information
kielbarry committed Jul 9, 2018
1 parent ece0d13 commit 82cbe6f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions params/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 82cbe6f

Please sign in to comment.