• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 提交

Golang implemented sidechain for Bytom


Commit MetaInfo

修订版f310fd982e462b8d9b96e92af8e9bb0207e3985b (tree)
时间2020-02-20 17:34:09
作者ipqhjjybj <250657661@qq.c...>
Commiteripqhjjybj

Log Message

rename

更改概述

差异

--- a/protocol/block.go
+++ b/protocol/block.go
@@ -203,14 +203,14 @@ func (c *Chain) Rollback(targetHeight uint64) error {
203203 return err
204204 }
205205
206- _, detachBlockHeaders, err := c.calcReorganizeChain(attachBlockHeader, c.bestBlockHeader)
206+ _, deletedBlockHeaders, err := c.calcReorganizeChain(attachBlockHeader, c.bestBlockHeader)
207207 if err != nil {
208208 return err
209209 }
210210
211211 deletedBlocks := []*types.Block{}
212- for _, detachBlockHeader := range detachBlockHeaders {
213- block, err := c.detachBlock(detachBlockHeader, consensusResult, utxoView)
212+ for _, deletedBlockHeader := range deletedBlockHeaders {
213+ block, err := c.detachBlock(deletedBlockHeader, consensusResult, utxoView)
214214 if err != nil {
215215 return err
216216 }
Show on old repository browser