mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
cmd/swarm, cmd/geth: Activate pss module on websocket (geth -> swarm)
This commit is contained in:
parent
07e47e0abd
commit
7f79b01105
2 changed files with 7 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ func defaultNodeConfig() node.Config {
|
|||
cfg.Name = clientIdentifier
|
||||
cfg.Version = params.VersionWithCommit(gitCommit)
|
||||
cfg.HTTPModules = append(cfg.HTTPModules, "eth", "shh")
|
||||
cfg.WSModules = append(cfg.WSModules, "eth", "shh", "pss")
|
||||
cfg.WSModules = append(cfg.WSModules, "eth", "shh")
|
||||
cfg.IPCPath = "geth.ipc"
|
||||
return cfg
|
||||
}
|
||||
|
|
|
|||
|
|
@ -419,6 +419,12 @@ func bzzd(ctx *cli.Context) error {
|
|||
}
|
||||
|
||||
cfg := defaultNodeConfig
|
||||
|
||||
//pss operates on ws
|
||||
if bzzconfig.PssEnabled {
|
||||
cfg.WSModules = append(cfg.WSModules, "pss")
|
||||
}
|
||||
|
||||
//geth only supports --datadir via command line
|
||||
//in order to be consistent within swarm, if we pass --datadir via environment variable
|
||||
//or via config file, we get the same directory for geth and swarm
|
||||
|
|
|
|||
Loading…
Reference in a new issue