Skip to content

Commit

Permalink
Merge pull request #3 from EspressoSystems/jh/invalid-tx
Browse files Browse the repository at this point in the history
Use the broadcaster to deliver msgs if espresso mode is on
  • Loading branch information
ImJeremyHe authored Nov 28, 2023
2 parents 7c8b39a + 0ad3bf8 commit 71cc80d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ function writeConfigs(argv: any) {
"url": argv.validationNodeUrl,
"jwtsecret": valJwtSecret,
}
},
"feed": {
"input": {
"url": [], // websocket urls
},
"output": {
"enable": false,
"signed": false,
"addr": "0.0.0.0",
},
}
},
"persistent": {
Expand Down Expand Up @@ -255,14 +265,19 @@ function writeConfigs(argv: any) {
sequencerConfig.node.espresso = true
sequencerConfig.execution.sequencer.espresso = true
sequencerConfig.execution.sequencer["hotshot-url"] = argv.espressoUrl
sequencerConfig.node.feed.output.enable = true
} else {
sequencerConfig.node["seq-coordinator"].enable = true
}
fs.writeFileSync(path.join(consts.configpath, "sequencer_config.json"), JSON.stringify(sequencerConfig))

let posterConfig = JSON.parse(baseConfJSON)
posterConfig["parent-chain"].wallet.account = namedAccount("sequencer").address
posterConfig.node["seq-coordinator"].enable = true
if (argv.espresso) {
posterConfig.node.feed.input.url.push("ws://sequencer:9642")
} else {
posterConfig.node["seq-coordinator"].enable = true
}
posterConfig.node["batch-poster"].enable = true
fs.writeFileSync(path.join(consts.configpath, "poster_config.json"), JSON.stringify(posterConfig))

Expand Down

0 comments on commit 71cc80d

Please sign in to comment.