Skip to content

Commit a776380

Browse files
authored
increase submitted txn cache size (#2972)
1 parent ab8e2bb commit a776380

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
@@ -139,7 +139,7 @@ const (
139139
defaultSeqGenesisFile = ""
140140
defaultSeqDisableFees = false
141141
defaultHTTPUpdatePort = 0
142-
defaultSubmittedTransactionsCacheSize = 1024
142+
defaultSubmittedTransactionsCacheSize = 10_000
143143
defaultSubmittedTransactionsCacheEntryTTL = 5 * time.Minute
144144

145145
configFlagUsage = "The YAML configuration file."

cmd/juno/juno_test.go

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

7171
tests := map[string]struct {

0 commit comments

Comments
 (0)