aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_makers_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-10 20:29:40 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-10 23:37:41 +0800
commita32c51effda8682b292d04863aae7811f78abf7e (patch)
treed721822cc10c929d5a2def0865c366e085ef99be /core/chain_makers_test.go
parent5a810758dbe75dce9537d464ac0e5b5385b0e78f (diff)
downloaddexon-a32c51effda8682b292d04863aae7811f78abf7e.tar
dexon-a32c51effda8682b292d04863aae7811f78abf7e.tar.gz
dexon-a32c51effda8682b292d04863aae7811f78abf7e.tar.bz2
dexon-a32c51effda8682b292d04863aae7811f78abf7e.tar.lz
dexon-a32c51effda8682b292d04863aae7811f78abf7e.tar.xz
dexon-a32c51effda8682b292d04863aae7811f78abf7e.tar.zst
dexon-a32c51effda8682b292d04863aae7811f78abf7e.zip
cmd, core, eth, common: genesis preparation
Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
Diffstat (limited to 'core/chain_makers_test.go')
-rw-r--r--core/chain_makers_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go
index 2f001be9b..ddd54d217 100644
--- a/core/chain_makers_test.go
+++ b/core/chain_makers_test.go
@@ -39,7 +39,7 @@ func ExampleGenerateChain() {
)
// Ensure that key1 has some funds in the genesis block.
- genesis := GenesisBlockForTesting(db, addr1, big.NewInt(1000000))
+ genesis := WriteGenesisBlockForTesting(db, addr1, big.NewInt(1000000))
// This call generates a chain of 5 blocks. The function runs for
// each block and adds different features to gen based on the
@@ -74,7 +74,7 @@ func ExampleGenerateChain() {
// Import the chain. This runs all block validation rules.
evmux := &event.TypeMux{}
- chainman, _ := NewChainManager(genesis, db, db, db, FakePow{}, evmux)
+ chainman, _ := NewChainManager(db, db, db, FakePow{}, evmux)
chainman.SetProcessor(NewBlockProcessor(db, db, FakePow{}, chainman, evmux))
if i, err := chainman.InsertChain(chain); err != nil {
fmt.Printf("insert error (block %d): %v\n", i, err)