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@byzantine-lab.io>2019-06-12 17:23:39 +0800
commitda5366ade13a7e92a710db139cac423b8dea21d6 (patch)
treed970974b40207a41ddee18e34af8ca90d56a7c2b /core
parentb0fd5da490e5141ca456f145a1fd1e7a55b33e1f (diff)
downloadgo-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar.gz
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar.bz2
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar.lz
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar.xz
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.tar.zst
go-tangerine-da5366ade13a7e92a710db139cac423b8dea21d6.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)