aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-20 18:01:20 +0800
committerobscuren <geffobscura@gmail.com>2015-04-20 18:01:20 +0800
commit97b0c4b6978d7fd972f3b0991acca1227e4e83dc (patch)
tree8c6f35d6e82fa809a06694635c331bb8103b8907 /core/genesis.go
parentfa729a0c55aa4b00c2ac33d0fcee8acabed2f737 (diff)
downloaddexon-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.gz
dexon-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.tar.zst
dexon-97b0c4b6978d7fd972f3b0991acca1227e4e83dc.zip
core: moved TD calculation from proc to chain
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 8ef1e140f..37997fbef 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -52,6 +52,7 @@ func GenesisBlock(db common.Database) *types.Block {
}
statedb.Sync()
genesis.Header().Root = statedb.Root()
+ genesis.Td = params.GenesisDifficulty
return genesis
}