aboutsummaryrefslogtreecommitdiffstats
path: root/core/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/config.go')
-rw-r--r--core/config.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/config.go b/core/config.go
index d557ae5a4..d04b00e9c 100644
--- a/core/config.go
+++ b/core/config.go
@@ -39,7 +39,7 @@ type ChainConfig struct {
// IsHomestead returns whether num is either equal to the homestead block or greater.
func (c *ChainConfig) IsHomestead(num *big.Int) bool {
- if num == nil {
+ if c.HomesteadBlock == nil || num == nil {
return false
}
return num.Cmp(c.HomesteadBlock) >= 0