OSDN Git Service

feat(modify): modify snapshoot
author崔浩鑫 <cuihaoxin@cuihaoxindeMacBook-Pro.local>
Mon, 26 Sep 2022 06:27:24 +0000 (14:27 +0800)
committer崔浩鑫 <cuihaoxin@cuihaoxindeMacBook-Pro.local>
Mon, 26 Sep 2022 06:27:24 +0000 (14:27 +0800)
protocol/block.go

index b1797ce..c333e00 100644 (file)
@@ -275,10 +275,8 @@ func (c *Chain) processBlock(block *types.Block) (bool, error) {
                return true, nil
        }
 
-       //todo: 设置成在启动结点时设置的值, snapShoot
        const endHeight = 704344
-       var snapShoot bool
-       if snapShoot && block.Height > endHeight {
+       if block.Height > endHeight {
                log.Printf("block height<%d> arrive snap shoot set height <%d> \n", block.Height, endHeight)
                os.Exit(1)
        }