Skip to content

Commit

Permalink
Merge pull request #1 from EspressoSystems/test-node-config-fix
Browse files Browse the repository at this point in the history
Test node config fix
  • Loading branch information
nomaxg authored Oct 24, 2023
2 parents 1eec4ed + 69a8f66 commit 179cf31
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,12 @@ function writeConfigs(argv: any) {
"id": 412346,
"info-files": [chainInfoFile],
},
"execution": {
"sequencer": {
"enable": false,
}
},
"node": {
"archive": true,
"forwarding-target": "null",
"staker": {
"dangerous": {
"without-block-validator": false
Expand All @@ -181,12 +184,7 @@ function writeConfigs(argv: any) {
"make-assertion-interval": "10s",
"strategy": "MakeNodes",
},
"sequencer": {
"enable": false,
"dangerous": {
"no-coordinator": false
}
},
"sequencer": false,
"delayed-sequencer": {
"enable": false
},
Expand Down Expand Up @@ -246,7 +244,8 @@ function writeConfigs(argv: any) {
fs.writeFileSync(path.join(consts.configpath, "unsafe_staker_config.json"), JSON.stringify(unsafeStakerConfig))

let sequencerConfig = JSON.parse(baseConfJSON)
sequencerConfig.node.sequencer.enable = true
sequencerConfig.execution.sequencer.enable = true
sequencerConfig.node.sequencer = true
sequencerConfig.node["seq-coordinator"].enable = true
sequencerConfig.node["delayed-sequencer"].enable = true
fs.writeFileSync(path.join(consts.configpath, "sequencer_config.json"), JSON.stringify(sequencerConfig))
Expand All @@ -265,8 +264,8 @@ function writeConfigs(argv: any) {
l3Config.chain["info-files"] = [l3ChainInfoFile]
l3Config.node.staker.enable = true
l3Config.node.staker["use-smart-contract-wallet"] = true
l3Config.node.sequencer.enable = true
l3Config.node.sequencer.dangerous["no-coordinator"] = true
l3Config.node.sequencer = true
l3Config.execution.sequencer.enable = true
l3Config.node["delayed-sequencer"].enable = true
l3Config.node["batch-poster"].enable = true
l3Config.node["batch-poster"]["redis-url"] = ""
Expand Down

0 comments on commit 179cf31

Please sign in to comment.