aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-07-14 23:17:03 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-07-15 21:52:55 +0800
commit3291235711082759cd7b70253c02150a80d57011 (patch)
treed8124891fb563f5143a156f415ae7ee7e6a30683 /eth/downloader
parent461cdb593b9e5bd9ae9ac35c68809a3a29290dcb (diff)
downloaddexon-3291235711082759cd7b70253c02150a80d57011.tar
dexon-3291235711082759cd7b70253c02150a80d57011.tar.gz
dexon-3291235711082759cd7b70253c02150a80d57011.tar.bz2
dexon-3291235711082759cd7b70253c02150a80d57011.tar.lz
dexon-3291235711082759cd7b70253c02150a80d57011.tar.xz
dexon-3291235711082759cd7b70253c02150a80d57011.tar.zst
dexon-3291235711082759cd7b70253c02150a80d57011.zip
accounts, core, eth: pass chain config for chain maker to test DAO
Diffstat (limited to 'eth/downloader')
-rw-r--r--eth/downloader/downloader_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index e9e051ded..fac6ef81c 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -55,7 +55,7 @@ func init() {
// reassembly.
func makeChain(n int, seed byte, parent *types.Block, parentReceipts types.Receipts, heavy bool) ([]common.Hash, map[common.Hash]*types.Header, map[common.Hash]*types.Block, map[common.Hash]types.Receipts) {
// Generate the block chain
- blocks, receipts := core.GenerateChain(parent, testdb, n, func(i int, block *core.BlockGen) {
+ blocks, receipts := core.GenerateChain(nil, parent, testdb, n, func(i int, block *core.BlockGen) {
block.SetCoinbase(common.Address{seed})
// If a heavy chain is requested, delay blocks to raise difficulty