aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-09 17:36:23 +0800
committerobscuren <geffobscura@gmail.com>2015-06-09 17:37:01 +0800
commita5b977aa9042b8b5199067d435c5cbd3f6459834 (patch)
tree33b99a5baee2561407548142d191b27c3792c80d /core
parent0f1cdfa53ad445df7bf3aed281fc36e53ecbbfd4 (diff)
downloadgo-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar.gz
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar.bz2
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar.lz
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar.xz
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.tar.zst
go-tangerine-a5b977aa9042b8b5199067d435c5cbd3f6459834.zip
core: write accounts to statedb. Closes #1210
Diffstat (limited to 'core')
-rw-r--r--core/chain_manager.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index e87253304..a0ce20006 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -111,12 +111,13 @@ type ChainManager struct {
func NewChainManager(genesis *types.Block, blockDb, stateDb common.Database, pow pow.PoW, mux *event.TypeMux) (*ChainManager, error) {
bc := &ChainManager{
- blockDb: blockDb,
- stateDb: stateDb,
- eventMux: mux,
- quit: make(chan struct{}),
- cache: NewBlockCache(blockCacheLimit),
- pow: pow,
+ blockDb: blockDb,
+ stateDb: stateDb,
+ genesisBlock: GenesisBlock(42, stateDb),
+ eventMux: mux,
+ quit: make(chan struct{}),
+ cache: NewBlockCache(blockCacheLimit),
+ pow: pow,
}
// Check the genesis block given to the chain manager. If the genesis block mismatches block number 0