aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorrjl493456442 <garyrong0905@gmail.com>2017-11-21 22:13:57 +0800
committerrjl493456442 <garyrong0905@gmail.com>2017-11-21 22:13:57 +0800
commit41ef34ae402b2c0b545d94ad3a5449efe68afb8e (patch)
tree5a118f8e23fe9927cf399766fef1c244d13afe85 /les
parentf5091e5711fc18205ed3a7c2d9d6a7fe7f0262f2 (diff)
downloadgo-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar.gz
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar.bz2
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar.lz
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar.xz
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.tar.zst
go-tangerine-41ef34ae402b2c0b545d94ad3a5449efe68afb8e.zip
les: use modified default txpool config to avoid creating journal file
Diffstat (limited to 'les')
-rw-r--r--les/handler_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/les/handler_test.go b/les/handler_test.go
index 9e63e15a6..a9dac89b4 100644
--- a/les/handler_test.go
+++ b/les/handler_test.go
@@ -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()