@agoric/cosmos 0.34.2-dev-074c43c.0 → 0.34.2-dev-97e3f7b.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/x/swingset/config.go +10 -1
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
97e3f7b
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-97e3f7b.0+97e3f7b",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"typeCoverage": {
|
|
40
40
|
"atLeast": 0
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "97e3f7b0b45fca80599c8734e90362dcb6aa1071"
|
|
43
43
|
}
|
package/x/swingset/config.go
CHANGED
|
@@ -31,6 +31,11 @@ const DefaultConfigTemplate = `
|
|
|
31
31
|
# If relative, it is interpreted against the application home directory
|
|
32
32
|
# (e.g., ~/.agoric).
|
|
33
33
|
slogfile = "{{ .Swingset.SlogFile }}"
|
|
34
|
+
|
|
35
|
+
# The maximum number of vats that the SwingSet kernel will bring online. A lower number
|
|
36
|
+
# requires less memory but may have a negative performance impact if vats need to
|
|
37
|
+
# be frequently paged out to remain under this limit.
|
|
38
|
+
max_vats_online = {{ .Swingset.MaxVatsOnline }}
|
|
34
39
|
`
|
|
35
40
|
|
|
36
41
|
// SwingsetConfig defines configuration for the SwingSet VM.
|
|
@@ -38,10 +43,14 @@ slogfile = "{{ .Swingset.SlogFile }}"
|
|
|
38
43
|
type SwingsetConfig struct {
|
|
39
44
|
// SlogFile is the absolute path at which a SwingSet log "slog" file should be written.
|
|
40
45
|
SlogFile string `mapstructure:"slogfile" json:"slogfile,omitempty"`
|
|
46
|
+
// MaxVatsOnline is the maximum number of vats that the SwingSet kernel will have online
|
|
47
|
+
// at any given time.
|
|
48
|
+
MaxVatsOnline int `mapstructure:"max_vats_online" json:"maxVatsOnline,omitempty"`
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
var DefaultSwingsetConfig = SwingsetConfig{
|
|
44
|
-
SlogFile:
|
|
52
|
+
SlogFile: "",
|
|
53
|
+
MaxVatsOnline: 50,
|
|
45
54
|
}
|
|
46
55
|
|
|
47
56
|
func SwingsetConfigFromViper(resolvedConfig servertypes.AppOptions) (*SwingsetConfig, error) {
|