aboutsummaryrefslogtreecommitdiffstats
path: root/les
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-09 09:41:56 +0800
committerFelix Lange <fjl@twurst.com>2016-11-09 09:51:34 +0800
commitbbb5e5d56a51d9430aec934c76a0bd02f1f2427d (patch)
treeef1c3a915af7f07c049c08318fe450b2ecf46654 /les
parentb8bd9a71c8b2722ec526ac5b0e35bf05d0fbd075 (diff)
downloadgo-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar.gz
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar.bz2
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar.lz
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar.xz
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.tar.zst
go-tangerine-bbb5e5d56a51d9430aec934c76a0bd02f1f2427d.zip
les: print 'experimental feature' warning on startup
Diffstat (limited to 'les')
-rw-r--r--les/backend.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/les/backend.go b/les/backend.go
index 38d1fd380..5eb53d728 100644
--- a/les/backend.go
+++ b/les/backend.go
@@ -38,6 +38,8 @@ import (
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/internal/ethapi"
"github.com/ethereum/go-ethereum/light"
+ "github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/p2p"
rpc "github.com/ethereum/go-ethereum/rpc"
@@ -195,6 +197,7 @@ func (s *LightEthereum) Protocols() []p2p.Protocol {
// Start implements node.Service, starting all internal goroutines needed by the
// Ethereum protocol implementation.
func (s *LightEthereum) Start(srvr *p2p.Server) error {
+ glog.V(logger.Info).Infof("WARNING: light client mode is an experimental feature")
s.netRPCService = ethapi.NewPublicNetAPI(srvr, s.netVersionId)
s.protocolManager.Start(srvr)
return nil