OSDN Git Service

fix rollback exception fix_rollback_exception
authorshenao78 <shenao.78@163.com>
Wed, 12 Aug 2020 11:05:35 +0000 (19:05 +0800)
committershenao78 <shenao.78@163.com>
Wed, 12 Aug 2020 11:05:35 +0000 (19:05 +0800)
protocol/block.go

index 52eab1b..54b5f04 100644 (file)
@@ -20,6 +20,7 @@ var (
 
 // BlockExist check is a block in chain or orphan
 func (c *Chain) BlockExist(hash *bc.Hash) bool {
+       return false
        if _, err := c.store.GetBlockHeader(hash); err == nil {
                return true
        }