Skip to content

Commit fe5f2ab

Browse files
committed
set default submitted txn cache size to 10k
1 parent 80cd371 commit fe5f2ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/juno/juno.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const (
137137
defaultSeqGenesisFile = ""
138138
defaultSeqDisableFees = false
139139
defaultHTTPUpdatePort = 0
140-
defaultSubmittedTransactionsCacheSize = 1024
140+
defaultSubmittedTransactionsCacheSize = 10_000
141141
defaultSubmittedTransactionsCacheEntryTTL = 5 * time.Minute
142142

143143
configFlagUsage = "The YAML configuration file."

cmd/juno/juno_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func TestConfigPrecedence(t *testing.T) {
6464
defaultCallMaxSteps := uint(4_000_000)
6565
defaultSeqBlockTime := uint(60)
6666
defaultGwTimeout := "5s"
67-
defaultSubmittedTransactionsCacheSize := uint(1024)
67+
defaultSubmittedTransactionsCacheSize := uint(10_000)
6868
defaultSubmittedTransactionsCacheEntryTTL := 5 * time.Minute
6969

7070
expectedConfig1 := node.Config{

0 commit comments

Comments
 (0)