Skip to content

Commit 41ef34a

Browse files
committed
les: use modified default txpool config to avoid creating journal file
1 parent f5091e5 commit 41ef34a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎les/handler_test.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ func TestTransactionStatusLes2(t *testing.T) {
416416
db, _ := ethdb.NewMemDatabase()
417417
pm := newTestProtocolManagerMust(t, false, 0, nil, nil, nil, db)
418418
chain := pm.blockchain.(*core.BlockChain)
419-
txpool := core.NewTxPool(core.DefaultTxPoolConfig, params.TestChainConfig, chain)
419+
config := core.DefaultTxPoolConfig
420+
config.Journal = ""
421+
txpool := core.NewTxPool(config, params.TestChainConfig, chain)
420422
pm.txpool = txpool
421423
peer, _ := newTestPeer(t, "peer", 2, pm, true)
422424
defer peer.close()

0 commit comments

Comments
 (0)