aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-03-06 17:37:32 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-09 22:50:14 +0800
commit023670f6bafcfed28c01857da215217a5dadfaa1 (patch)
tree2ced9d0178bfd8d101356a64522cf0225f98362e /les
parent567d41d9363706b4b13ce0903804e8acf214af49 (diff)
downloadgo-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar.gz
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar.bz2
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar.lz
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar.xz
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.tar.zst
go-tangerine-023670f6bafcfed28c01857da215217a5dadfaa1.zip
cmd, eth, les, node, pow: disk caching and progress reports
Diffstat (limited to 'les')
-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,