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:
38864f8
)
fix build failure (#484)
author
Yongfeng LI
<wliyongfeng@gmail.com>
Mon, 26 Mar 2018 07:45:55 +0000
(15:45 +0800)
committer
GitHub
<noreply@github.com>
Mon, 26 Mar 2018 07:45:55 +0000
(15:45 +0800)
protocol/block.go
patch
|
blob
|
history
diff --git
a/protocol/block.go
b/protocol/block.go
index
5260575
..
68e3776
100755
(executable)
--- a/
protocol/block.go
+++ b/
protocol/block.go
@@
-151,7
+151,8
@@
func (c *Chain) SaveBlock(block *types.Block) error {
return err
}
- log.WithFields(log.Fields{"height": block.Height, "hash": block.Hash().String()}).Info("Block saved on disk")
+ blockHash := block.Hash()
+ log.WithFields(log.Fields{"height": block.Height, "hash": blockHash.String()}).Info("Block saved on disk")
return nil
}