diff options
author | gary rong <garyrong0905@gmail.com> | 2018-09-20 20:09:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-09-20 20:09:30 +0800 |
commit | d6254f827bf493c1471a806b7b8a0e9b86c8c420 (patch) | |
tree | e8cd05de67e506ee1b1b12d2b9468952179d1670 /light | |
parent | f89dce0126f92eb5f3245f6b8e8b1e3ac13641b3 (diff) | |
download | go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.gz go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.bz2 go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.lz go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.xz go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.tar.zst go-tangerine-d6254f827bf493c1471a806b7b8a0e9b86c8c420.zip |
all: protect self-mined block during reorg (#17656)
Diffstat (limited to 'light')
-rw-r--r-- | light/odr_test.go | 2 | ||||
-rw-r--r-- | light/trie_test.go | 2 | ||||
-rw-r--r-- | light/txpool_test.go | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/light/odr_test.go b/light/odr_test.go index eea5b1eab..3da7b3055 100644 --- a/light/odr_test.go +++ b/light/odr_test.go @@ -257,7 +257,7 @@ func testChainOdr(t *testing.T, protocol int, fn odrTestFn) { ) gspec.MustCommit(ldb) // Assemble the test environment - blockchain, _ := core.NewBlockChain(sdb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}) + blockchain, _ := core.NewBlockChain(sdb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}, nil) gchain, _ := core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), sdb, 4, testChainGen) if _, err := blockchain.InsertChain(gchain); err != nil { t.Fatal(err) diff --git a/light/trie_test.go b/light/trie_test.go index 6bddfefe2..51ce9017a 100644 --- a/light/trie_test.go +++ b/light/trie_test.go @@ -40,7 +40,7 @@ func TestNodeIterator(t *testing.T) { genesis = gspec.MustCommit(fulldb) ) gspec.MustCommit(lightdb) - blockchain, _ := core.NewBlockChain(fulldb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}) + blockchain, _ := core.NewBlockChain(fulldb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}, nil) gchain, _ := core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), fulldb, 4, testChainGen) if _, err := blockchain.InsertChain(gchain); err != nil { panic(err) diff --git a/light/txpool_test.go b/light/txpool_test.go index 204347a6e..ce77573ef 100644 --- a/light/txpool_test.go +++ b/light/txpool_test.go @@ -88,7 +88,7 @@ func TestTxPool(t *testing.T) { ) gspec.MustCommit(ldb) // Assemble the test environment - blockchain, _ := core.NewBlockChain(sdb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}) + blockchain, _ := core.NewBlockChain(sdb, nil, params.TestChainConfig, ethash.NewFullFaker(), vm.Config{}, nil) gchain, _ := core.GenerateChain(params.TestChainConfig, genesis, ethash.NewFaker(), sdb, poolTestBlocks, txPoolTestChainGen) if _, err := blockchain.InsertChain(gchain); err != nil { panic(err) |