aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/main.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 /cmd/swarm/main.go
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 'cmd/swarm/main.go')
-rw-r--r--cmd/swarm/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index 9185af980..258f24d32 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -123,6 +123,11 @@ var (
Usage: "Duration for sync subscriptions update after no new peers are added (default 15s)",
EnvVar: SWARM_ENV_SYNC_UPDATE_DELAY,
}
+ SwarmLightNodeEnabled = cli.BoolFlag{
+ Name: "lightnode",
+ Usage: "Enable Swarm LightNode (default false)",
+ EnvVar: SWARM_ENV_LIGHT_NODE_ENABLE,
+ }
SwarmDeliverySkipCheckFlag = cli.BoolFlag{
Name: "delivery-skip-check",
Usage: "Skip chunk delivery check (default false)",
@@ -464,6 +469,7 @@ pv(1) tool to get a progress bar:
SwarmSwapAPIFlag,
SwarmSyncDisabledFlag,
SwarmSyncUpdateDelay,
+ SwarmLightNodeEnabled,
SwarmDeliverySkipCheckFlag,
SwarmListenAddrFlag,
SwarmPortFlag,