aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-18 21:22:45 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:54 +0800
commitd90a653d3332f2e957ae7dcf138494506dc9c179 (patch)
treea5df776f95163e884930379a20294e761808216f /core
parent2524fb2cd58833c952b9f2b387e5e07366c321ef (diff)
downloaddexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar.gz
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar.bz2
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar.lz
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar.xz
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.tar.zst
dexon-d90a653d3332f2e957ae7dcf138494506dc9c179.zip
params: load blockReward from genesis JSON file
Diffstat (limited to 'core')
-rw-r--r--core/genesis.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/genesis.go b/core/genesis.go
index eaca53673..a176deb00 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -255,6 +255,7 @@ func (g *Genesis) ToBlock(db ethdb.Database) *types.Block {
govStateHelper := vm.GovernanceStateHelper{statedb}
for addr, account := range g.Alloc {
+ fmt.Println(account)
statedb.AddBalance(addr, new(big.Int).Sub(account.Balance, account.Staked))
statedb.SetCode(addr, account.Code)
statedb.SetNonce(addr, account.Nonce)