aboutsummaryrefslogtreecommitdiff
path: root/params
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-18 14:11:31 -0500
committerAaron Buchwald <[email protected]>2020-12-18 14:11:31 -0500
commit6280035239dd6b1c47cc9eca7acfbcec53397ff0 (patch)
tree3fe2cd6b7dea8d42674c7d34e94891e84a1e0a5d /params
parent1a3af21dedc790ca0958eb2c93b7e98f5b7f2b77 (diff)
Add clarifying comment and enforce no yolov1 fork with apricotv0.4.0-rc.2
Diffstat (limited to 'params')
-rw-r--r--params/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/params/config.go b/params/config.go
index f945f47..8d7bd92 100644
--- a/params/config.go
+++ b/params/config.go
@@ -560,6 +560,10 @@ func (c *ChainConfig) CheckConfigForkOrder() error {
lastFork = cur
}
}
+
+ if c.ApricotBlockTimestamp != nil && c.YoloV1Block != nil {
+ return fmt.Errorf("apricot fork is incomatible with yoloV1 fork")
+ }
return nil
}