Skip to content

Commit

Permalink
Merge pull request #418 from vegaprotocol/fix-null-chain-2
Browse files Browse the repository at this point in the history
feat: updates for nullchain
  • Loading branch information
daniel1302 authored Oct 4, 2023
2 parents 0e5c7ec + 5dfd8cc commit fb3137e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 27 deletions.
2 changes: 1 addition & 1 deletion net_confs/config_nullchain.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ EOT
config_templates {
vega_file = "./node_set_templates/nullchain/vega_validator.toml"
tendermint_file = "./node_set_templates/nullchain/tendermint_validator.toml"
data_node_file = "./node_set_templates/nullchain/data_node.tmpl"
data_node_file = "./node_set_templates/nullchain/data_node_external_postgresql.tmpl"
}
}

Expand Down
47 changes: 23 additions & 24 deletions net_confs/config_nullchain_no_erc20.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,28 +33,26 @@ EOT
}

pre_start {
docker_service "postgres-1" {
image = "vegaprotocol/timescaledb:2.8.0-pg14"
cmd = "postgres"
args = []
env = {
POSTGRES_USER="vega"
POSTGRES_PASSWORD="vega"
POSTGRES_DBS="vega,vega0,vega1,vega2,vega3,vega4,vega5,vega6,vega7,vega8,vega9,vega10,vega11,vega12,vega13,vega14,vega15,vega16,vega17,vega18,vega19,vega20,vega21,vega22,vega23,vega24,vega25"
}

static_port {
value = 5432
to = 5432
}
resources {
cpu = 600
memory = 900
}

volume_mounts = ["${network_home_path}:${network_home_path}"]

auth_soft_fail = true
docker_service "postgres-1" {
image = "vegaprotocol/timescaledb:2.8.0-pg14"
cmd = "postgres"
args = []
env = {
POSTGRES_USER="vega"
POSTGRES_PASSWORD="vega"
POSTGRES_DBS="vega"
}

static_port {
value = 5332
to = 5432
}
resources {
cpu = 600
memory = 900
}

auth_soft_fail = true
}
}

Expand All @@ -69,8 +67,9 @@ EOT
use_data_node = true

config_templates {
vega_file = "./node_set_templates/nullchain/vega_validator.toml"
tendermint_file = "./node_set_templates/nullchain/tendermint_validator.toml"
vega_file = "./node_set_templates/nullchain/vega_validator_no_erc20.toml"
tendermint_file = "./node_set_templates/nullchain/tendermint_validator.toml"
data_node_file = "./node_set_templates/nullchain/data_node_external_postgresql.tmpl"
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
GatewayEnabled = true

[SqlStore]
Level = "Info"
Enabled = false
WipeOnStartup = true
UseEmbedded = false
[SQLStore.ConnectionConfig]
Database = "vega"
Host = "localhost"
Password = "vega"
Port = 5332
UseTransactions = true
Username = "vega"

[API]
Level = "Info"
Port = {{add 300 .NodeNumber}}7
CoreNodeGRPCPort = {{add 300 .NodeNumber}}2

[Pprof]
Level = "Info"
Enabled = true
Port = {{add 60 .NodeNumber}}60
ProfilesDir = "{{.NodeHomeDir}}"

[Gateway]
Level = "Info"
Port = {{add 300 .NodeNumber}}8
[Gateway.Node]
Port = {{add 300 .NodeNumber}}7

[Metrics]
Level = "Info"
Timeout = "5s"
Port = {{add 210 .NodeNumber}}2
Enabled = false
[Broker]
Level = "Info"
UseEventFile = false
[Broker.SocketConfig]
Port = {{add 300 .NodeNumber}}5

[NetworkHistory]
Enabled = false
2 changes: 1 addition & 1 deletion net_confs/node_set_templates/nullchain/genesis.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"spam.protection.proposal.min.tokens": "1000000000000000000",
"spam.protection.voting.min.tokens": "1000000000000000000",
"validators.delegation.minAmount": "100000000000000000",
"validators.epoch.length": "5s",
"validators.epoch.length": "1m",
"snapshot.interval.length": "100",
"validators.vote.required": "0.67"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
"spam.protection.proposal.min.tokens": "1000000000000000000",
"spam.protection.voting.min.tokens": "1000000000000000000",
"validators.delegation.minAmount": "100000000000000000",
"validators.epoch.length": "5s",
"validators.epoch.length": "1m",
"snapshot.interval.length": "100",
"validators.vote.required": "0.67"
},
Expand Down

0 comments on commit fb3137e

Please sign in to comment.