OSDN Git Service
(root)
/
bytom
/
bytom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
blockindex unit tests
[bytom/bytom.git]
/
protocol
/
orphan_manage.go
diff --git
a/protocol/orphan_manage.go
b/protocol/orphan_manage.go
index
20067e1
..
0399ffd
100644
(file)
--- a/
protocol/orphan_manage.go
+++ b/
protocol/orphan_manage.go
@@
-49,7
+49,7
@@
func (o *OrphanManage) Add(block *types.Block) {
log.WithFields(log.Fields{"hash": blockHash.String(), "height": block.Height}).Info("add block to orphan")
}
log.WithFields(log.Fields{"hash": blockHash.String(), "height": block.Height}).Info("add block to orphan")
}
-// Delete will dele
l
te the block from OrphanManage
+// Delete will delete the block from OrphanManage
func (o *OrphanManage) Delete(hash *bc.Hash) {
o.mtx.Lock()
defer o.mtx.Unlock()
func (o *OrphanManage) Delete(hash *bc.Hash) {
o.mtx.Lock()
defer o.mtx.Unlock()