updated MAIN.GO

This commit is contained in:
AnilChinchawale 2018-05-22 13:16:10 +05:30
parent a8477a1d57
commit 1269bea37d

View file

@ -405,9 +405,9 @@ func bzzd(ctx *cli.Context) error {
}
cfg := defaultNodeConfig
//geth only supports --datadir via command line
//XDC 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
//or via config file, we get the same directory for XDC and swarm
if _, err := os.Stat(bzzconfig.Path); err == nil {
cfg.DataDir = bzzconfig.Path
}