aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-23 21:33:15 +0800
committerobscuren <geffobscura@gmail.com>2014-12-23 21:33:15 +0800
commit9e5257b83b8572077b9c26e4ae9a9443f765bf6e (patch)
treef94a123cb02af8cebecef263290b0378cf3d78ac /core/chain_manager.go
parent4cd79d8ddd7608d60344b13fe4bda7315429d1d9 (diff)
downloaddexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.gz
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.bz2
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.lz
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.xz
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.tar.zst
dexon-9e5257b83b8572077b9c26e4ae9a9443f765bf6e.zip
Chain importer
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go5
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)
}