Skip to content

Commit de3d875

Browse files
authored
Merge pull request #358 from OffchainLabs/recorddb_config
recordingDb: remove koanf for config
2 parents 4e55bfe + 9ca65b8 commit de3d875

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

arbitrum/recordingdb.go

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121
"github.com/ethereum/go-ethereum/rlp"
2222
"github.com/ethereum/go-ethereum/triedb"
2323
"github.com/ethereum/go-ethereum/triedb/hashdb"
24-
flag "github.com/spf13/pflag"
2524
)
2625

2726
var (
@@ -159,18 +158,8 @@ func (r *RecordingChainContext) GetMinBlockNumberAccessed() uint64 {
159158
}
160159

161160
type RecordingDatabaseConfig struct {
162-
TrieDirtyCache int `koanf:"trie-dirty-cache"`
163-
TrieCleanCache int `koanf:"trie-clean-cache"`
164-
}
165-
166-
var DefaultRecordingDatabaseConfig = RecordingDatabaseConfig{
167-
TrieDirtyCache: 1024,
168-
TrieCleanCache: 16,
169-
}
170-
171-
func RecordingDatabaseConfigAddOptions(prefix string, f *flag.FlagSet) {
172-
f.Int(prefix+".trie-dirty-cache", DefaultRecordingDatabaseConfig.TrieDirtyCache, "like trie-dirty-cache for the separate, recording database (used for validation)")
173-
f.Int(prefix+".trie-clean-cache", DefaultRecordingDatabaseConfig.TrieCleanCache, "like trie-clean-cache for the separate, recording database (used for validation)")
161+
TrieDirtyCache int
162+
TrieCleanCache int
174163
}
175164

176165
type RecordingDatabase struct {

0 commit comments

Comments
 (0)