OSDN Git Service

bug fix
authorshenao78 <shenao.78@163.com>
Wed, 1 Apr 2020 11:42:24 +0000 (19:42 +0800)
committershenao78 <shenao.78@163.com>
Wed, 1 Apr 2020 11:42:24 +0000 (19:42 +0800)
protocol/protocol.go

index fd8879a..ea1b2b0 100644 (file)
@@ -239,7 +239,7 @@ func (c *Chain) syncProtocolStatus(subProtocol SubProtocol) error {
                }
 
                protocolHeight, protocolHash = subProtocol.StartHeight(), startHash
-       } else {
+       } else if err != nil {
                return errors.Wrap(err, subProtocol.Name(), "can't get chain status")
        }