@@ -875,6 +875,24 @@ var (
875875		Name :  "net.shadowforkpeers" ,
876876		Usage : "peer ids of shadow fork peers" ,
877877	}
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+ 	}
878896)
879897
880898// MakeDataDir retrieves the currently requested data directory, terminating 
@@ -1319,6 +1337,10 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
13191337	setSmartCard (ctx , cfg )
13201338	setL1 (ctx , cfg )
13211339
1340+ 	if  ctx .IsSet (DASyncEnabledFlag .Name ) {
1341+ 		cfg .DaSyncingEnabled  =  ctx .Bool (DASyncEnabledFlag .Name )
1342+ 	}
1343+ 
13221344	if  ctx .GlobalIsSet (ExternalSignerFlag .Name ) {
13231345		cfg .ExternalSigner  =  ctx .GlobalString (ExternalSignerFlag .Name )
13241346	}
@@ -1604,6 +1626,21 @@ func setEnableRollupVerify(ctx *cli.Context, cfg *ethconfig.Config) {
16041626	}
16051627}
16061628
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+ 
16071644func  setMaxBlockRange (ctx  * cli.Context , cfg  * ethconfig.Config ) {
16081645	if  ctx .GlobalIsSet (MaxBlockRangeFlag .Name ) {
16091646		cfg .MaxBlockRange  =  ctx .GlobalInt64 (MaxBlockRangeFlag .Name )
@@ -1679,6 +1716,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *ethconfig.Config) {
16791716	setLes (ctx , cfg )
16801717	setCircuitCapacityCheck (ctx , cfg )
16811718	setEnableRollupVerify (ctx , cfg )
1719+ 	setDA (ctx , cfg )
16821720	setMaxBlockRange (ctx , cfg )
16831721	if  ctx .GlobalIsSet (ShadowforkPeersFlag .Name ) {
16841722		cfg .ShadowForkPeerIDs  =  ctx .GlobalStringSlice (ShadowforkPeersFlag .Name )
0 commit comments