diff options
author | BJ4 <bojie@dexon.org> | 2018-11-09 12:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:53 +0800 |
commit | 07da8c75d1a8f9557f73eff4d6cb74e4047ea7b8 (patch) | |
tree | e045d29c9b1b9cd074a51ba8ef9eebe9a7e8c15e /core/chain_makers_test.go | |
parent | 39ccaa58fd25cac9d2f85823f2ea56cd65cb06b7 (diff) | |
download | dexon-07da8c75d1a8f9557f73eff4d6cb74e4047ea7b8.tar.gz dexon-07da8c75d1a8f9557f73eff4d6cb74e4047ea7b8.tar.zst dexon-07da8c75d1a8f9557f73eff4d6cb74e4047ea7b8.zip |
app: fix core test
Diffstat (limited to 'core/chain_makers_test.go')
-rw-r--r-- | core/chain_makers_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index c240ed824..cb01ae0c9 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -42,7 +42,7 @@ func ExampleGenerateChain() { // Ensure that key1 has some funds in the genesis block. gspec := &Genesis{ - Config: ¶ms.ChainConfig{HomesteadBlock: new(big.Int)}, + Config: ¶ms.ChainConfig{HomesteadBlock: new(big.Int), Dexcon: params.TestChainConfig.Dexcon}, Alloc: GenesisAlloc{addr1: {Balance: big.NewInt(1000000)}}, } genesis := gspec.MustCommit(db) @@ -160,7 +160,7 @@ func ExampleGenerateChainWithRoundChange() { // This call generates a chain of 1000 blocks. The function runs for // each block and adds different features to gen based on the // block index. - chain, _ := GenerateChainWithRoundChange(gspec.Config, genesis, ethash.NewFaker(), db, 1000, func(i int, gen *BlockGen) { + chain, _ := GenerateChainWithRoundChange(gspec.Config, genesis, ethash.NewFaker(), db, 5, func(i int, gen *BlockGen) { switch i { case 0: // In block 1, addr1 sends addr2 some ether. @@ -189,7 +189,7 @@ func ExampleGenerateChainWithRoundChange() { }, nodeSet, 30) // Import the chain. This runs all block validation rules. - blockchain, _ := NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}) + blockchain, _ := NewBlockChain(db, nil, gspec.Config, ethash.NewFaker(), vm.Config{}, nil) defer blockchain.Stop() if i, err := blockchain.InsertChain(chain); err != nil { |