diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-11-22 02:42:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 02:42:11 +0800 |
commit | 049797d40a24f96d58fb466dd5d5e89b94691ef2 (patch) | |
tree | 7da9de8defed02d43deade7d1442eac130f4b4b3 | |
parent | 005665867d50a4b38e269b6b84156db2f75469a3 (diff) | |
parent | 41ef34ae402b2c0b545d94ad3a5449efe68afb8e (diff) | |
download | dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.gz dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.bz2 dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.lz dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.xz dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.tar.zst dexon-049797d40a24f96d58fb466dd5d5e89b94691ef2.zip |
Merge pull request #15521 from rjl493456442/clean_tx_journal
les: clean up tx journal file after testing
-rw-r--r-- | les/handler_test.go | 4 |
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() |