OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cca3ed
)
remove useless code
author
shenao78
<shenao.78@163.com>
Thu, 31 Oct 2019 08:06:23 +0000
(16:06 +0800)
committer
shenao78
<shenao.78@163.com>
Thu, 31 Oct 2019 08:06:23 +0000
(16:06 +0800)
protocol/protocol.go
patch
|
blob
|
history
diff --git
a/protocol/protocol.go
b/protocol/protocol.go
index
7972d9e
..
3dc00fa
100644
(file)
--- a/
protocol/protocol.go
+++ b/
protocol/protocol.go
@@
-242,10
+242,6
@@
func (c *Chain) syncProtocolStatus(subProtocol Protocoler) error {
blockHash := block.Hash()
protocolHeight, protocolHash = block.Height, &blockHash
-
- if *protocolHash != block.Hash() {
- return errors.Wrap(errors.New("sub protocol status sync err"), subProtocol.Name())
- }
}
return nil