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-03-12 12:19:09 +0800
commit7ac1f8430d6d3e0c59f50fa1c94c2ba5cdd1430b (patch)
tree1e7015a283caa12db81e4b2f91d922ee8eb05874 /core
parentb5a83f66f640a623711225ea2a2cb795da69955a (diff)
downloaddexon-7ac1f8430d6d3e0c59f50fa1c94c2ba5cdd1430b.tar.gz
dexon-7ac1f8430d6d3e0c59f50fa1c94c2ba5cdd1430b.tar.zst
dexon-7ac1f8430d6d3e0c59f50fa1c94c2ba5cdd1430b.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 3baed72d8..ed47d5b42 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)