OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d5ada5
)
optimise
author
oys
<oys@oysdeMBP.localdomain>
Thu, 4 Jul 2019 01:40:43 +0000
(09:40 +0800)
committer
oys
<oys@oysdeMBP.localdomain>
Thu, 4 Jul 2019 01:40:43 +0000
(09:40 +0800)
protocol/block.go
patch
|
blob
|
history
diff --git
a/protocol/block.go
b/protocol/block.go
index
76c8b61
..
4eaee08
100644
(file)
--- a/
protocol/block.go
+++ b/
protocol/block.go
@@
-223,7
+223,7
@@
func (c *Chain) saveBlock(block *types.Block) error {
return err
}
- consensusResult, err := c.
getBestConsensusResult(
)
+ consensusResult, err := c.
GetConsensusResultByHash(&block.PreviousBlockHash
)
if err != nil {
return err
}