@@ -875,6 +875,24 @@ var (
875
875
Name : "net.shadowforkpeers" ,
876
876
Usage : "peer ids of shadow fork peers" ,
877
877
}
878
+
879
+ // DA syncing settings
880
+ DASyncEnabledFlag = & cli.BoolFlag {
881
+ Name : "da.sync" ,
882
+ Usage : "Enable node syncing from DA" ,
883
+ }
884
+ DABlobScanAPIEndpointFlag = & cli.StringFlag {
885
+ Name : "da.blob.blobscan" ,
886
+ Usage : "BlobScan blob API endpoint" ,
887
+ }
888
+ DABlockNativeAPIEndpointFlag = & cli.StringFlag {
889
+ Name : "da.blob.blocknative" ,
890
+ Usage : "BlockNative blob API endpoint" ,
891
+ }
892
+ DABeaconNodeAPIEndpointFlag = & cli.StringFlag {
893
+ Name : "da.blob.beaconnode" ,
894
+ Usage : "Beacon node API endpoint" ,
895
+ }
878
896
)
879
897
880
898
// MakeDataDir retrieves the currently requested data directory, terminating
@@ -1319,6 +1337,10 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
1319
1337
setSmartCard (ctx , cfg )
1320
1338
setL1 (ctx , cfg )
1321
1339
1340
+ if ctx .IsSet (DASyncEnabledFlag .Name ) {
1341
+ cfg .DaSyncingEnabled = ctx .Bool (DASyncEnabledFlag .Name )
1342
+ }
1343
+
1322
1344
if ctx .GlobalIsSet (ExternalSignerFlag .Name ) {
1323
1345
cfg .ExternalSigner = ctx .GlobalString (ExternalSignerFlag .Name )
1324
1346
}
@@ -1604,6 +1626,21 @@ func setEnableRollupVerify(ctx *cli.Context, cfg *ethconfig.Config) {
1604
1626
}
1605
1627
}
1606
1628
1629
+ func setDA (ctx * cli.Context , cfg * ethconfig.Config ) {
1630
+ if ctx .IsSet (DASyncEnabledFlag .Name ) {
1631
+ cfg .EnableDASyncing = ctx .Bool (DASyncEnabledFlag .Name )
1632
+ if ctx .IsSet (DABlobScanAPIEndpointFlag .Name ) {
1633
+ cfg .DA .BlobScanAPIEndpoint = ctx .String (DABlobScanAPIEndpointFlag .Name )
1634
+ }
1635
+ if ctx .IsSet (DABlockNativeAPIEndpointFlag .Name ) {
1636
+ cfg .DA .BlockNativeAPIEndpoint = ctx .String (DABlockNativeAPIEndpointFlag .Name )
1637
+ }
1638
+ if ctx .IsSet (DABeaconNodeAPIEndpointFlag .Name ) {
1639
+ cfg .DA .BeaconNodeAPIEndpoint = ctx .String (DABeaconNodeAPIEndpointFlag .Name )
1640
+ }
1641
+ }
1642
+ }
1643
+
1607
1644
func setMaxBlockRange (ctx * cli.Context , cfg * ethconfig.Config ) {
1608
1645
if ctx .GlobalIsSet (MaxBlockRangeFlag .Name ) {
1609
1646
cfg .MaxBlockRange = ctx .GlobalInt64 (MaxBlockRangeFlag .Name )
@@ -1679,6 +1716,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
1679
1716
setLes (ctx , cfg )
1680
1717
setCircuitCapacityCheck (ctx , cfg )
1681
1718
setEnableRollupVerify (ctx , cfg )
1719
+ setDA (ctx , cfg )
1682
1720
setMaxBlockRange (ctx , cfg )
1683
1721
if ctx .GlobalIsSet (ShadowforkPeersFlag .Name ) {
1684
1722
cfg .ShadowForkPeerIDs = ctx .GlobalStringSlice (ShadowforkPeersFlag .Name )
0 commit comments