Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into stylus_chargingfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Sep 13, 2024
2 parents fded6f6 + de3d875 commit 64c91dd
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 64c91dd

Please sign in to comment.