diff options
author | obscuren <geffobscura@gmail.com> | 2014-12-23 21:33:15 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-12-23 21:33:15 +0800 |
commit | 9e5257b83b8572077b9c26e4ae9a9443f765bf6e (patch) | |
tree | f94a123cb02af8cebecef263290b0378cf3d78ac /core/chain_manager.go | |
parent | 4cd79d8ddd7608d60344b13fe4bda7315429d1d9 (diff) | |
download | go-tangerine-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.gz go-tangerine-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.zst go-tangerine-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.zip |
Chain importer
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index e35c4aa3a..fe687e501 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -204,9 +204,6 @@ func (bc *ChainManager) Reset() { bc.currentBlock = bc.genesisBlock bc.setTotalDifficulty(ethutil.Big("0")) - - // Set the last know difficulty (might be 0x0 as initial value, Genesis) - bc.td = ethutil.BigD(ethutil.Config.Db.LastKnownTD()) } func (self *ChainManager) Export() []byte { @@ -219,9 +216,7 @@ func (self *ChainManager) Export() []byte { for block := self.currentBlock; block != nil; block = self.GetBlock(block.Header().ParentHash) { blocks[block.NumberU64()] = block } - //fmt.Println(blocks) - return nil return ethutil.Encode(blocks) } |