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
Showing
- cmd/swarm/config.go 11 additions, 0 deletionscmd/swarm/config.go
- cmd/swarm/main.go 6 additions, 0 deletionscmd/swarm/main.go
- swarm/api/config.go 1 addition, 0 deletionsswarm/api/config.go
- swarm/network/protocol.go 12 additions, 1 deletionswarm/network/protocol.go
- swarm/network/protocol_test.go 64 additions, 16 deletionsswarm/network/protocol_test.go
- swarm/swarm.go 1 addition, 0 deletionsswarm/swarm.go
Loading
Please register or sign in to comment