aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorAttila Gazso <attila.gazso@prezi.com>2018-08-07 21:34:11 +0800
committerBalint Gabor <balint.g@gmail.com>2018-08-07 21:34:11 +0800
commit9df16f34689956121ebc360857f91242291b7f0c (patch)
tree338b7621b771dc0e9dc7f66c44bed551b494b5ea /swarm/api
parent8461fea44b140fcb04905be7acc4539f42c0444f (diff)
downloaddexon-9df16f34689956121ebc360857f91242291b7f0c.tar
dexon-9df16f34689956121ebc360857f91242291b7f0c.tar.gz
dexon-9df16f34689956121ebc360857f91242291b7f0c.tar.bz2
dexon-9df16f34689956121ebc360857f91242291b7f0c.tar.lz
dexon-9df16f34689956121ebc360857f91242291b7f0c.tar.xz
dexon-9df16f34689956121ebc360857f91242291b7f0c.tar.zst
dexon-9df16f34689956121ebc360857f91242291b7f0c.zip
swarm: Added lightnode flag (#17291)
* swarm: Added lightnode flag Added --lightnode command line parameter Added LightNode to Handshake message * swarm/config: Fixed variable naming * cmd/swarm: Changed BoolTFlag to BoolFlag for SwarmLightNodeEnabled * swarm/network: Changed logging * swarm/network: Changed protocol version testing * swarm/network: Renamed DefaultNetworkID variable to TestProtocolNetworkID * swarm/network: Bumped protocol version * swarm/network: Changed LightNode handhsake test to table driven * swarm/network: Changed back TestProtocolVersion to 5 for now * swarm/network: Moved the test configuration inside the test function scope
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/swarm/api/config.go b/swarm/api/config.go
index 939285e09..bdfffdd05 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -63,6 +63,7 @@ type Config struct {
SwapEnabled bool
SyncEnabled bool
DeliverySkipCheck bool
+ LightNodeEnabled bool
SyncUpdateDelay time.Duration
SwapAPI string
Cors string