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:
61c3713
)
fix mov dead lock (#443)
author
Poseidon
<shenao.78@163.com>
Wed, 13 Nov 2019 11:15:55 +0000
(19:15 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Wed, 13 Nov 2019 11:15:55 +0000
(19:15 +0800)
* fix mov dead lock
* Delete LOCK
protocol/protocol.go
patch
|
blob
|
history
diff --git
a/protocol/protocol.go
b/protocol/protocol.go
index
4f7316f
..
095a588
100644
(file)
--- a/
protocol/protocol.go
+++ b/
protocol/protocol.go
@@
-215,7
+215,7
@@
func (c *Chain) markTransactions(txs ...*types.Tx) {
}
func (c *Chain) syncProtocolStatus(subProtocol Protocoler) error {
- if c.
BestBlockHeight()
< subProtocol.StartHeight() {
+ if c.
bestBlockHeader.Height
< subProtocol.StartHeight() {
return nil
}