OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Del signature from cache when added to the block (#258)
[bytom/vapor.git]
/
protocol
/
bbft.go
diff --git
a/protocol/bbft.go
b/protocol/bbft.go
index
70b1d81
..
11dc0db
100644
(file)
--- a/
protocol/bbft.go
+++ b/
protocol/bbft.go
@@
-132,6
+132,7
@@
func (c *Chain) validateSign(block *types.Block) error {
cachekey := signCacheKey(blockHash.String(), pubKey)
if signature, ok := c.signatureCache.Get(cachekey); ok {
block.Set(node.Order, signature.([]byte))
+ c.signatureCache.Remove(cachekey)
} else {
continue
}