clean up
All checks were successful
Tests / Run integration tests (pull_request) Successful in 3m26s
Tests / Run compliance tests (pull_request) Successful in 3m47s

This commit is contained in:
Roy Crihfield 2024-07-11 19:31:43 +08:00
parent ee48b656a1
commit 419a95001b
2 changed files with 2 additions and 5 deletions

View File

@ -119,7 +119,6 @@ func createReader() (pkg.Reader, *params.ChainConfig, node.Info) {
},
},
ChainConfig: chainConf,
// Mode: mode,
Path: path,
AncientPath: ancientPath,
Url: url,

View File

@ -49,7 +49,6 @@ type EthDBReader struct {
type EthDBReaderConfig struct {
TrieConfig *triedb.Config
ChainConfig *params.ChainConfig
// Mode string
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",