Skip to content

Commit

Permalink
Merge pull request #358 from OffchainLabs/recorddb_config
Browse files Browse the repository at this point in the history
recordingDb: remove koanf for config
  • Loading branch information
tsahee authored Sep 13, 2024
2 parents 4e55bfe + 9ca65b8 commit de3d875
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions arbitrum/recordingdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit de3d875

Please sign in to comment.