OSDN Git Service

fix word spell
authoroysheng <oysheng@bytom.io>
Tue, 22 May 2018 06:43:45 +0000 (14:43 +0800)
committeroysheng <oysheng@bytom.io>
Tue, 22 May 2018 06:46:04 +0000 (14:46 +0800)
protocol/block.go

index e9d1af3..872ef4f 100644 (file)
@@ -32,7 +32,7 @@ func (c *Chain) GetBlockByHash(hash *bc.Hash) (*types.Block, error) {
 func (c *Chain) GetBlockByHeight(height uint64) (*types.Block, error) {
        node := c.index.NodeByHeight(height)
        if node == nil {
-               return nil, errors.New("can't find block in given hight")
+               return nil, errors.New("can't find block in given height")
        }
        return c.store.GetBlock(&node.Hash)
 }