aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
Diffstat (limited to 'les')
-rw-r--r--les/backend.go2
-rw-r--r--les/handler_test.go4
2 files changed, 4 insertions, 2 deletions
diff --git a/les/backend.go b/les/backend.go
index 333df920e..7180b81d7 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -98,7 +98,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
peers: peers,
reqDist: newRequestDistributor(peers, quitSync),
accountManager: ctx.AccountManager,
- engine: eth.CreateConsensusEngine(ctx, config, chainConfig, chainDb),
+ engine: eth.CreateConsensusEngine(ctx, &config.Ethash, chainConfig, chainDb),
shutdownChan: make(chan bool),
networkId: config.NetworkId,
bloomRequests: make(chan chan *bloombits.Retrieval),
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()