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:
e6b375a
)
Fix the restore issue parallel insert and delete accountutxos
author
icodezjb
<icodezjb@163.com>
Fri, 20 Oct 2017 05:25:42 +0000
(13:25 +0800)
committer
icodezjb
<icodezjb@163.com>
Fri, 20 Oct 2017 05:25:42 +0000
(13:25 +0800)
blockchain/pin/pin.go
patch
|
blob
|
history
diff --git
a/blockchain/pin/pin.go
b/blockchain/pin/pin.go
index
d8b70bf
..
f2a4f4b
100644
(file)
--- a/
blockchain/pin/pin.go
+++ b/
blockchain/pin/pin.go
@@
-103,7
+103,7
@@
func (s *Store) LoadAll(ctx context.Context) error {
}
s.pins[block_processor.Name] = newPin(s.DB,
- block_processor.Name
[3:]
,
+ block_processor.Name,
block_processor.Height)
}
@@
-242,12
+242,8
@@
func (p *pin) complete(ctx context.Context, height uint64) error {
}
}
- block_processor = struct {
- Name string
- Height uint64
- }{
- Name: p.name,
- Height: max}
+ block_processor.Name = p.name
+ block_processor.Height = max
bytes, err = json.Marshal(&block_processor)
if err != nil {