OSDN Git Service

remove useless code
authorshenao78 <shenao.78@163.com>
Thu, 31 Oct 2019 08:06:23 +0000 (16:06 +0800)
committershenao78 <shenao.78@163.com>
Thu, 31 Oct 2019 08:06:23 +0000 (16:06 +0800)
protocol/protocol.go

index 7972d9e..3dc00fa 100644 (file)
@@ -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