Skip to content

Commit

Permalink
les: use modified default txpool config to avoid creating journal file
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Nov 21, 2017
1 parent f5091e5 commit 41ef34a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion les/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ func TestTransactionStatusLes2(t *testing.T) {
db, _ := ethdb.NewMemDatabase()
pm := newTestProtocolManagerMust(t, false, 0, nil, nil, nil, db)
chain := pm.blockchain.(*core.BlockChain)
txpool := core.NewTxPool(core.DefaultTxPoolConfig, params.TestChainConfig, chain)
config := core.DefaultTxPoolConfig
config.Journal = ""
txpool := core.NewTxPool(config, params.TestChainConfig, chain)
pm.txpool = txpool
peer, _ := newTestPeer(t, "peer", 2, pm, true)
defer peer.close()
Expand Down

0 comments on commit 41ef34a

Please sign in to comment.