OSDN Git Service

fix mov dead lock (#443)
authorPoseidon <shenao.78@163.com>
Wed, 13 Nov 2019 11:15:55 +0000 (19:15 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 13 Nov 2019 11:15:55 +0000 (19:15 +0800)
* fix mov dead lock

* Delete LOCK

protocol/protocol.go

index 4f7316f..095a588 100644 (file)
@@ -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
        }