aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/swarm.go
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/swarm.go
parent8461fea44b140fcb04905be7acc4539f42c0444f (diff)
downloaddexon-9df16f34689956121ebc360857f91242291b7f0c.tar.gz
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/swarm.go')
-rw-r--r--swarm/swarm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/swarm/swarm.go b/swarm/swarm.go
index db7d2dfed..c380a376f 100644
--- a/swarm/swarm.go
+++ b/swarm/swarm.go
@@ -143,6 +143,7 @@ func NewSwarm(config *api.Config, mockStore *mock.NodeStore) (self *Swarm, err e
OverlayAddr: addr.OAddr,
UnderlayAddr: addr.UAddr,
HiveParams: config.HiveParams,
+ LightNode: config.LightNodeEnabled,
}
stateStore, err := state.NewDBStore(filepath.Join(config.Path, "state-store.db"))