From c7539d8f7dfa3070a050220588cbe3fa20e2ce08 Mon Sep 17 00:00:00 2001 From: Tsahi Zidenberg Date: Wed, 11 Sep 2024 21:16:37 -0600 Subject: [PATCH] recordingDb: remove koanf for config --- arbitrum/recordingdb.go | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/arbitrum/recordingdb.go b/arbitrum/recordingdb.go index b2350f9c4e..ef1aa730a6 100644 --- a/arbitrum/recordingdb.go +++ b/arbitrum/recordingdb.go @@ -21,7 +21,6 @@ import ( "github.com/ethereum/go-ethereum/rlp" "github.com/ethereum/go-ethereum/triedb" "github.com/ethereum/go-ethereum/triedb/hashdb" - flag "github.com/spf13/pflag" ) var ( @@ -159,18 +158,8 @@ func (r *RecordingChainContext) GetMinBlockNumberAccessed() uint64 { } type RecordingDatabaseConfig struct { - TrieDirtyCache int `koanf:"trie-dirty-cache"` - TrieCleanCache int `koanf:"trie-clean-cache"` -} - -var DefaultRecordingDatabaseConfig = RecordingDatabaseConfig{ - TrieDirtyCache: 1024, - TrieCleanCache: 16, -} - -func RecordingDatabaseConfigAddOptions(prefix string, f *flag.FlagSet) { - f.Int(prefix+".trie-dirty-cache", DefaultRecordingDatabaseConfig.TrieDirtyCache, "like trie-dirty-cache for the separate, recording database (used for validation)") - f.Int(prefix+".trie-clean-cache", DefaultRecordingDatabaseConfig.TrieCleanCache, "like trie-clean-cache for the separate, recording database (used for validation)") + TrieDirtyCache int + TrieCleanCache int } type RecordingDatabase struct {