cmd/utils, eth, les: bubble --fakepow flag into eth/les too

This commit is contained in:
Péter Szilágyi
2017-01-04 10:42:41 +02:00
parent 891fcd8ce1
commit 2ce30382d9
3 changed files with 11 additions and 10 deletions

View File

@ -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,
}