From 9c18a15e0a25a81ef081d1a33091bc8197bf58e6 Mon Sep 17 00:00:00 2001 From: Asa Oines Date: Thu, 22 Aug 2019 01:16:33 +0200 Subject: [PATCH] Serve light clients by default (#395) --- cmd/utils/flags.go | 2 +- eth/config.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 568d5fc76ac5..2baf2c95bc3e 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -182,7 +182,7 @@ var ( LightServFlag = cli.IntFlag{ Name: "lightserv", Usage: "Maximum percentage of time allowed for serving LES requests (0-90)", - Value: 0, + Value: eth.DefaultConfig.LightServ, } LightPeersFlag = cli.IntFlag{ Name: "lightpeers", diff --git a/eth/config.go b/eth/config.go index 1c8757563dcd..0b8fdfb39de4 100644 --- a/eth/config.go +++ b/eth/config.go @@ -44,6 +44,7 @@ var DefaultConfig = Config{ }, NetworkId: 1, LightPeers: 100, + LightServ: 50, DatabaseCache: 768, TrieTimeout: 60 * time.Minute, MinerGasFloor: 8000000,