mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Fix logic error: OR to use AND
This commit is contained in:
parent
4f926086ee
commit
68e62fa804
1 changed files with 2 additions and 2 deletions
|
|
@ -312,8 +312,8 @@ func CalcDifficulty(config *params.ChainConfig, time uint64, parent *types.Heade
|
|||
// chain is a private network or not based on the configurations
|
||||
// ChainID.
|
||||
func isPrivateNetwork(config *params.ChainConfig) bool {
|
||||
return config.ChainID != params.MainnetChainConfig.ChainID ||
|
||||
config.ChainID != params.TestChainConfig.ChainID ||
|
||||
return config.ChainID != params.MainnetChainConfig.ChainID &&
|
||||
config.ChainID != params.TestChainConfig.ChainID &&
|
||||
config.ChainID != params.RinkebyChainConfig.ChainID
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue