aboutsummaryrefslogtreecommitdiffstats
path: root/les/backend.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-04 19:27:51 +0800
committerGitHub <noreply@github.com>2017-01-04 19:27:51 +0800
commit0fac8cba479a7cd90c17307b8795a0f836877c2e (patch)
treeb58724f43acd861074780a847d6b0f4fabc2ed48 /les/backend.go
parent1ca74aba6fa4cf4ca414c942cbf99e211577af03 (diff)
parent2ce30382d9bbda91e3b253029082e6add2d51294 (diff)
downloadgo-tangerine-0fac8cba479a7cd90c17307b8795a0f836877c2e.tar.gz
go-tangerine-0fac8cba479a7cd90c17307b8795a0f836877c2e.tar.zst
go-tangerine-0fac8cba479a7cd90c17307b8795a0f836877c2e.zip
Merge pull request #3511 from karalabe/live-fakepow
cmd/utils, eth, les: bubble --fakepow flag into eth/les too
Diffstat (limited to 'les/backend.go')
-rw-r--r--les/backend.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/les/backend.go b/les/backend.go
index d21d5a98c..3deab61f7 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -22,7 +22,6 @@ import (
"fmt"
"time"
- "github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/compiler"
@@ -42,6 +41,7 @@ import (
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/params"
+ "github.com/ethereum/go-ethereum/pow"
rpc "github.com/ethereum/go-ethereum/rpc"
)
@@ -61,13 +61,12 @@ type LightEthereum struct {
ApiBackend *LesApiBackend
eventMux *event.TypeMux
- pow *ethash.Ethash
+ pow pow.PoW
accountManager *accounts.Manager
solcPath string
solc *compiler.Solidity
NatSpec bool
- PowTest bool
netVersionId int
netRPCService *ethapi.PublicNetAPI
}
@@ -97,7 +96,6 @@ func New(ctx *node.ServiceContext, config *eth.Config) (*LightEthereum, error) {
shutdownChan: make(chan bool),
netVersionId: config.NetworkId,
NatSpec: config.NatSpec,
- PowTest: config.PowTest,
solcPath: config.SolcPath,
}