OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c6d6d
)
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
patch
|
blob
|
history
diff --git
a/protocol/block.go
b/protocol/block.go
index
b1797ce
..
c333e00
100644
(file)
--- a/
protocol/block.go
+++ b/
protocol/block.go
@@
-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)
}