aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-05-20 17:50:34 +0800
committerMaran <maran.hidskes@gmail.com>2014-05-20 17:50:34 +0800
commit12f30e6220354c4a8b08ecf41bb53444143f3660 (patch)
tree4397ab1b50723a2c6ad9ce6980f49bb137c48f1f /ethchain
parentb8034f4d9ed7eea29a219a2d894ae22041a906a7 (diff)
downloadgo-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar.gz
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar.bz2
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar.lz
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar.xz
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.tar.zst
go-tangerine-12f30e6220354c4a8b08ecf41bb53444143f3660.zip
Refactored a lot of the chain catchup/reorg.
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/block_chain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/block_chain.go b/ethchain/block_chain.go
index 6c3b15a6a..2ce0f90a6 100644
--- a/ethchain/block_chain.go
+++ b/ethchain/block_chain.go
@@ -127,7 +127,6 @@ func (bc *BlockChain) FindCanonicalChain(blocks []*Block, commonBlockHash []byte
log.Println("[CHAIN] We have found the common parent block, breaking")
break
}
- log.Println("Checking incoming blocks:")
chainDifficulty.Add(chainDifficulty, bc.CalculateBlockTD(block))
}
@@ -182,6 +181,7 @@ func (bc *BlockChain) ResetTillBlockHash(hash []byte) error {
// XXX Why are we resetting? This is the block chain, it has nothing to do with states
//bc.Ethereum.StateManager().PrepareDefault(returnTo)
+ // Manually reset the last sync block
err := ethutil.Config.Db.Delete(lastBlock.Hash())
if err != nil {
return err