diff --git a/cmd/util.go b/cmd/util.go index b193e67..4fd3967 100644 --- a/cmd/util.go +++ b/cmd/util.go @@ -119,7 +119,6 @@ func createReader() (pkg.Reader, *params.ChainConfig, node.Info) { }, }, ChainConfig: chainConf, - // Mode: mode, Path: path, AncientPath: ancientPath, Url: url, diff --git a/pkg/reader.go b/pkg/reader.go index ec87401..3181543 100644 --- a/pkg/reader.go +++ b/pkg/reader.go @@ -47,9 +47,8 @@ type EthDBReader struct { } type EthDBReaderConfig struct { - TrieConfig *triedb.Config - ChainConfig *params.ChainConfig - // Mode string + TrieConfig *triedb.Config + ChainConfig *params.ChainConfig Path, AncientPath, Url string DBCacheSize int } @@ -57,7 +56,6 @@ type EthDBReaderConfig struct { // NewEthDBReader creates a new Reader using LevelDB func NewEthDBReader(conf EthDBReaderConfig) (*EthDBReader, error) { opts := rawdb.OpenOptions{ - // Type: conf.Mode, Directory: conf.Path, AncientsDirectory: conf.AncientPath, Namespace: "eth-statediff-service",