Merge pull request #98 from openrelayxyz/feature/etc-plugin

Removed injection in MakeDataDir()
This commit is contained in:
AusIV authored and GitHub committed 2023-11-02 16:00:09 -05:00
commit 703c3b6b74
1 file changed
+1 -7
+1 -7
View File
@@ -979,13 +979,7 @@ var (
// if none (or the empty string) is specified. If the node is starting a testnet,
// then a subdirectory of the specified datadir will be used.
func MakeDataDir(ctx *cli.Context) string {
if path := ctx.String(DataDirFlag.Name); path == "" {
// begin PluGeth injection
if pluginPath := pluginDefaultDataDir(path); pluginPath != "" {
log.Error("Inside datdir injection number one")
return pluginPath
}
// end PluGeth injection
if path := ctx.String(DataDirFlag.Name); path != "" {
if ctx.Bool(GoerliFlag.Name) {
return filepath.Join(path, "goerli")
}