Skip to content

Commit dfcc6b2

Browse files
authored
Merge pull request #167 from OffchainLabs/customda-config-update
Updates for CustomDA config changes
2 parents 030ec92 + 3ef4152 commit dfcc6b2

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

scripts/config.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,6 @@ function writeConfigs(argv: any) {
266266
"enable": true,
267267
"urls": ["http://das-mirror:9877"],
268268
},
269-
// TODO Fix das config to not need this redundant config
270-
"parent-chain-node-url": argv.l1url,
271-
"sequencer-inbox-address": "not_set"
272269
}
273270
},
274271
"execution": {
@@ -290,11 +287,8 @@ function writeConfigs(argv: any) {
290287
},
291288
}
292289

293-
baseConfig.node["data-availability"]["sequencer-inbox-address"] = ethers.utils.hexlify(getChainInfo()[0]["rollup"]["sequencer-inbox"]);
294-
295290
if (argv.referenceDA) {
296291
(baseConfig as any).node["da"] = {
297-
"mode": "external",
298292
"external-provider": {
299293
"enable": true,
300294
"with-writer": false,
@@ -478,8 +472,10 @@ function writeL2DASCommitteeConfig(argv: any) {
478472
"enable": true,
479473
"enable-expiry": true
480474
},
481-
"sequencer-inbox-address": sequencerInboxAddr,
482-
"parent-chain-node-url": argv.l1url
475+
},
476+
"parent-chain": {
477+
"node-url": argv.l1url,
478+
"sequencer-inbox-address": sequencerInboxAddr
483479
},
484480
"enable-rest": true,
485481
"enable-rpc": true,
@@ -502,8 +498,6 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) {
502498
"enable": true,
503499
"enable-expiry": false
504500
},
505-
"sequencer-inbox-address": sequencerInboxAddr,
506-
"parent-chain-node-url": argv.l1url,
507501
"rest-aggregator": {
508502
"enable": true,
509503
"sync-to-storage": {
@@ -515,6 +509,10 @@ function writeL2DASMirrorConfig(argv: any, sequencerInboxAddr: string) {
515509
"urls": ["http://das-committee-a:9877", "http://das-committee-b:9877"],
516510
}
517511
},
512+
"parent-chain": {
513+
"node-url": argv.l1url,
514+
"sequencer-inbox-address": sequencerInboxAddr
515+
},
518516
"enable-rest": true,
519517
"enable-rpc": false,
520518
"log-level": "INFO",

0 commit comments

Comments
 (0)