mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-31 09:03:46 +00:00
swarm, cmd/swarm: PR cleanup, rm obsolete flags
This commit is contained in:
parent
8f141465f2
commit
7ab9a617eb
2 changed files with 4 additions and 8 deletions
|
|
@ -265,9 +265,7 @@ Cleans database of corrupted entries.
|
|||
SwarmUpFromStdinFlag,
|
||||
SwarmUploadMimeType,
|
||||
// pss flags
|
||||
PssHostFlag,
|
||||
PssEnabledFlag,
|
||||
PssPortFlag,
|
||||
}
|
||||
app.Flags = append(app.Flags, debug.Flags...)
|
||||
app.Before = func(ctx *cli.Context) error {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ import (
|
|||
"github.com/ethereum/go-ethereum/contracts/chequebook"
|
||||
"github.com/ethereum/go-ethereum/contracts/ens"
|
||||
"github.com/ethereum/go-ethereum/crypto"
|
||||
"github.com/ethereum/go-ethereum/p2p/discover"
|
||||
"github.com/ethereum/go-ethereum/ethclient"
|
||||
"github.com/ethereum/go-ethereum/log"
|
||||
"github.com/ethereum/go-ethereum/node"
|
||||
|
|
@ -41,7 +40,6 @@ import (
|
|||
"github.com/ethereum/go-ethereum/swarm/network"
|
||||
"github.com/ethereum/go-ethereum/swarm/pss"
|
||||
"github.com/ethereum/go-ethereum/swarm/storage"
|
||||
//psschat "github.com/ethereum/go-ethereum/swarm/pss/protocols/chat"
|
||||
)
|
||||
|
||||
// the swarm stack
|
||||
|
|
@ -241,9 +239,9 @@ func (self *Swarm) Start(net *p2p.Server) error {
|
|||
func (self *Swarm) Stop() error {
|
||||
self.dpa.Stop()
|
||||
self.bzz.Stop()
|
||||
//if self.pss != nil {
|
||||
// self.pss.Stop()
|
||||
//}
|
||||
if self.pss != nil {
|
||||
self.pss.Stop()
|
||||
}
|
||||
if ch := self.config.Swap.Chequebook(); ch != nil {
|
||||
ch.Stop()
|
||||
ch.Save()
|
||||
|
|
@ -356,7 +354,7 @@ func NewLocalSwarm(datadir, port string) (self *Swarm, err error) {
|
|||
return
|
||||
}
|
||||
|
||||
config, err := api.NewConfig(datadir, common.Address{}, prvKey, network.NetworkId)
|
||||
config, err := api.NewConfig(datadir, common.Address{}, prvKey, network.NetworkID)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue