summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchris erway <chris.erway@algorand.com>2022-03-01 11:03:03 -0500
committerchris erway <chris.erway@algorand.com>2022-03-01 11:03:03 -0500
commit6f26b29f96ed15d8a911a4138c6adea302d1c993 (patch)
treeb47dea10bab186799b4d4eb707a2524da16ee498
parent3b3b3835bfb1d854467eb1cfd004c63cd4927acb (diff)
reduce MaxAPIResourcesPerAccount default to 100k
-rw-r--r--config/localTemplate.go2
-rw-r--r--config/local_defaults.go2
-rw-r--r--installer/config.json.example2
-rw-r--r--test/testdata/configs/config-v21.json2
4 files changed, 4 insertions, 4 deletions
diff --git a/config/localTemplate.go b/config/localTemplate.go
index 924365044..ff2594c0c 100644
--- a/config/localTemplate.go
+++ b/config/localTemplate.go
@@ -434,7 +434,7 @@ type Local struct {
// MaxAPIResourcesPerAccount sets the maximum total number of resources (created assets, created apps,
// asset holdings, and application local state) per account that will be allowed in AccountInformation
// REST API responses before returning a 400 Bad Request. Set zero for no limit.
- MaxAPIResourcesPerAccount uint64 `version[21]:"1000000"`
+ MaxAPIResourcesPerAccount uint64 `version[21]:"100000"`
}
// DNSBootstrapArray returns an array of one or more DNS Bootstrap identifiers
diff --git a/config/local_defaults.go b/config/local_defaults.go
index 361e342c3..2ded7578b 100644
--- a/config/local_defaults.go
+++ b/config/local_defaults.go
@@ -80,7 +80,7 @@ var defaultLocal = Local{
LogArchiveMaxAge: "",
LogArchiveName: "node.archive.log",
LogSizeLimit: 1073741824,
- MaxAPIResourcesPerAccount: 1000000,
+ MaxAPIResourcesPerAccount: 100000,
MaxCatchpointDownloadDuration: 7200000000000,
MaxConnectionsPerIP: 30,
MinCatchpointFileDownloadBytesPerSecond: 20480,
diff --git a/installer/config.json.example b/installer/config.json.example
index e3bdd41f5..c0c9c3a31 100644
--- a/installer/config.json.example
+++ b/installer/config.json.example
@@ -59,7 +59,7 @@
"LogArchiveMaxAge": "",
"LogArchiveName": "node.archive.log",
"LogSizeLimit": 1073741824,
- "MaxAPIResourcesPerAccount": 1000000,
+ "MaxAPIResourcesPerAccount": 100000,
"MaxCatchpointDownloadDuration": 7200000000000,
"MaxConnectionsPerIP": 30,
"MinCatchpointFileDownloadBytesPerSecond": 20480,
diff --git a/test/testdata/configs/config-v21.json b/test/testdata/configs/config-v21.json
index e3bdd41f5..c0c9c3a31 100644
--- a/test/testdata/configs/config-v21.json
+++ b/test/testdata/configs/config-v21.json
@@ -59,7 +59,7 @@
"LogArchiveMaxAge": "",
"LogArchiveName": "node.archive.log",
"LogSizeLimit": 1073741824,
- "MaxAPIResourcesPerAccount": 1000000,
+ "MaxAPIResourcesPerAccount": 100000,
"MaxCatchpointDownloadDuration": 7200000000000,
"MaxConnectionsPerIP": 30,
"MinCatchpointFileDownloadBytesPerSecond": 20480,