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:
e33da47
)
update
author
Chengcheng Zhang
<943420582@qq.com>
Mon, 17 Jun 2019 10:41:29 +0000
(18:41 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Mon, 17 Jun 2019 10:41:29 +0000
(18:41 +0800)
database/store.go
patch
|
blob
|
history
diff --git
a/database/store.go
b/database/store.go
index
59955eb
..
3af6338
100644
(file)
--- a/
database/store.go
+++ b/
database/store.go
@@
-321,7
+321,8
@@
func (s *Store) SaveChainStatus(node, irreversibleNode *state.BlockNode, view *s
if err != nil {
return err
}
- s.db.Set(calcVoteResultKey(vote.Seq), bytes)
+
+ batch.Set(calcVoteResultKey(vote.Seq), bytes)
if _, ok := s.cache.getVoteResult(vote.Seq); ok {
s.cache.addVoteResult(vote)
}