• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版ad1eab407099e5991dd93a1566369c3758724f16 (tree)
时间2020-03-18 15:21:46
作者shenao78 <shenao.78@163....>
Commitershenao78

Log Message

temp sync branch

更改概述

差异

--- a/protocol/bbft.go
+++ b/protocol/bbft.go
@@ -30,6 +30,7 @@ func signCacheKey(blockHash, pubkey string) string {
3030 }
3131
3232 func (c *Chain) checkDoubleSign(bh *types.BlockHeader, xPub string) error {
33+ return nil
3334 blockHashes, err := c.store.GetBlockHashesByHeight(bh.Height)
3435 if err != nil {
3536 return err
@@ -206,6 +207,7 @@ func (c *Chain) SignBlockHeader(blockHeader *types.BlockHeader) error {
206207 }
207208
208209 func (c *Chain) applyBlockSign(blockHeader *types.BlockHeader) error {
210+ return nil
209211 signature, err := c.signBlockHeader(blockHeader)
210212 if err != nil {
211213 return err
Show on old repository browser