diff options
author | Attila Gazso <attila.gazso@prezi.com> | 2018-08-07 21:34:11 +0800 |
---|---|---|
committer | Balint Gabor <balint.g@gmail.com> | 2018-08-07 21:34:11 +0800 |
commit | 9df16f34689956121ebc360857f91242291b7f0c (patch) | |
tree | 338b7621b771dc0e9dc7f66c44bed551b494b5ea /swarm/api | |
parent | 8461fea44b140fcb04905be7acc4539f42c0444f (diff) | |
download | go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar.gz go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar.bz2 go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar.lz go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar.xz go-tangerine-9df16f34689956121ebc360857f91242291b7f0c.tar.zst go-tangerine-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.go | 1 |
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 |