• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revisionf13b0c08f04e10bfa147a95ebb41b4447e5a1f1f (tree)
Time2019-07-12 20:47:53
Authorpaladz <453256728@qq.c...>
Commiterpaladz

Log Message

try to fix ban peer bug

Change Summary

Incremental Difference

--- a/protocol/bbft.go
+++ b/protocol/bbft.go
@@ -133,7 +133,7 @@ func (c *Chain) validateSign(block *types.Block) error {
133133 cachekey := signCacheKey(blockHash.String(), pubKey)
134134 if signature, ok := c.signatureCache.Get(cachekey); ok {
135135 block.Set(node.Order, signature.([]byte))
136- c.eventDispatcher.Post(event.BlockSignatureEvent{BlockHash: blockHash, Signature: signature.([]byte), XPub: []byte(pubKey)})
136+ c.eventDispatcher.Post(event.BlockSignatureEvent{BlockHash: blockHash, Signature: signature.([]byte), XPub: node.XPub[:]})
137137 c.signatureCache.Remove(cachekey)
138138 } else {
139139 continue
Show on old repository browser