OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1bc640
)
fix word spell
author
oysheng
<oysheng@bytom.io>
Tue, 22 May 2018 06:43:45 +0000
(14:43 +0800)
committer
oysheng
<oysheng@bytom.io>
Tue, 22 May 2018 06:46:04 +0000
(14:46 +0800)
protocol/block.go
patch
|
blob
|
history
diff --git
a/protocol/block.go
b/protocol/block.go
index
e9d1af3
..
872ef4f
100644
(file)
--- a/
protocol/block.go
+++ b/
protocol/block.go
@@
-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 h
e
ight")
}
return c.store.GetBlock(&node.Hash)
}