clean up
This commit is contained in:
parent
ee48b656a1
commit
419a95001b
@ -119,7 +119,6 @@ func createReader() (pkg.Reader, *params.ChainConfig, node.Info) {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
ChainConfig: chainConf,
|
ChainConfig: chainConf,
|
||||||
// Mode: mode,
|
|
||||||
Path: path,
|
Path: path,
|
||||||
AncientPath: ancientPath,
|
AncientPath: ancientPath,
|
||||||
Url: url,
|
Url: url,
|
||||||
|
@ -49,7 +49,6 @@ type EthDBReader struct {
|
|||||||
type EthDBReaderConfig struct {
|
type EthDBReaderConfig struct {
|
||||||
TrieConfig *triedb.Config
|
TrieConfig *triedb.Config
|
||||||
ChainConfig *params.ChainConfig
|
ChainConfig *params.ChainConfig
|
||||||
// Mode string
|
|
||||||
Path, AncientPath, Url string
|
Path, AncientPath, Url string
|
||||||
DBCacheSize int
|
DBCacheSize int
|
||||||
}
|
}
|
||||||
@ -57,7 +56,6 @@ type EthDBReaderConfig struct {
|
|||||||
// NewEthDBReader creates a new Reader using LevelDB
|
// NewEthDBReader creates a new Reader using LevelDB
|
||||||
func NewEthDBReader(conf EthDBReaderConfig) (*EthDBReader, error) {
|
func NewEthDBReader(conf EthDBReaderConfig) (*EthDBReader, error) {
|
||||||
opts := rawdb.OpenOptions{
|
opts := rawdb.OpenOptions{
|
||||||
// Type: conf.Mode,
|
|
||||||
Directory: conf.Path,
|
Directory: conf.Path,
|
||||||
AncientsDirectory: conf.AncientPath,
|
AncientsDirectory: conf.AncientPath,
|
||||||
Namespace: "eth-statediff-service",
|
Namespace: "eth-statediff-service",
|
||||||
|
Loading…
Reference in New Issue
Block a user