aboutsummaryrefslogtreecommitdiffstats
path: root/les/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'les/backend.go')
-rw-r--r--les/backend.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/les/backend.go b/les/backend.go
index e96fc9df0..404728c0e 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -77,11 +77,6 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
if err := eth.SetupGenesisBlock(&chainDb, config); err != nil {
return nil, err
}
- pow, err := eth.CreatePoW(config)
- if err != nil {
- return nil, err
- }
-
odr := NewLesOdr(chainDb)
relay := NewLesTxRelay()
eth := &LightEthereum{
@@ -90,7 +85,7 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
chainDb: chainDb,
eventMux: ctx.EventMux,
accountManager: ctx.AccountManager,
- pow: pow,
+ pow: eth.CreatePoW(ctx, config),
shutdownChan: make(chan bool),
netVersionId: config.NetworkId,
solcPath: config.SolcPath,