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:
ab25dde
)
fix dead lock
author
shenao78
<shenao.78@163.com>
Wed, 30 Oct 2019 07:37:46 +0000
(15:37 +0800)
committer
shenao78
<shenao.78@163.com>
Wed, 30 Oct 2019 07:37:46 +0000
(15:37 +0800)
protocol/protocol.go
patch
|
blob
|
history
diff --git
a/protocol/protocol.go
b/protocol/protocol.go
index
8dfd659
..
59880a7
100644
(file)
--- a/
protocol/protocol.go
+++ b/
protocol/protocol.go
@@
-212,7
+212,7
@@
func (c *Chain) syncProtocolStatus(subProtocol Protocoler) error {
return errors.Wrap(err, "failed on get sub protocol status")
}
- if protocolHeight == c.
BestBlockHeight() && protocolHash == c.BestBlock
Hash() {
+ if protocolHeight == c.
bestBlockHeader.Height && *protocolHash == c.bestBlockHeader.
Hash() {
return nil
}