@@ -641,7 +641,7 @@ impl PaymasterOptions {
641641}
642642
643643#[ cfg( feature = "vrf" ) ]
644- #[ derive( Debug , Args , Clone , Serialize , Deserialize , PartialEq ) ]
644+ #[ derive( Debug , Default , Args , Clone , Serialize , Deserialize , PartialEq ) ]
645645#[ command( next_help_heading = "VRF options" ) ]
646646pub struct VrfOptions {
647647 /// Enable the VRF service.
@@ -660,19 +660,6 @@ pub struct VrfOptions {
660660 #[ serde( default ) ]
661661 pub url : Option < Url > ,
662662
663- /// Port to bind the sidecar VRF service on (vrf-server uses 3000).
664- ///
665- /// Only used when running in sidecar mode. Not applicable if `--vrf.url` is provided.
666- #[ arg( conflicts_with = "vrf_url" ) ]
667- #[ arg(
668- long = "vrf.port" ,
669- value_name = "PORT" ,
670- id = "vrf_port" ,
671- default_value_t = default_vrf_port( )
672- ) ]
673- #[ serde( default = "default_vrf_port" ) ]
674- pub port : u16 ,
675-
676663 /// Optional path to the VRF sidecar binary (defaults to `vrf-server` in PATH).
677664 ///
678665 /// Only used when running in sidecar mode. Not applicable if `--vrf.url` is provided.
@@ -682,13 +669,6 @@ pub struct VrfOptions {
682669 pub bin : Option < PathBuf > ,
683670}
684671
685- #[ cfg( feature = "vrf" ) ]
686- impl Default for VrfOptions {
687- fn default ( ) -> Self {
688- VrfOptions { enabled : false , url : None , port : default_vrf_port ( ) , bin : None }
689- }
690- }
691-
692672#[ cfg( feature = "vrf" ) ]
693673impl VrfOptions {
694674 /// Returns true if the VRF is enabled (either explicitly or via URL).
@@ -711,10 +691,6 @@ impl VrfOptions {
711691 self . url = other. url . clone ( ) ;
712692 }
713693
714- if self . port == default_vrf_port ( ) {
715- self . port = other. port ;
716- }
717-
718694 if self . bin . is_none ( ) {
719695 self . bin = other. bin . clone ( ) ;
720696 }
@@ -867,11 +843,6 @@ fn default_api_url() -> Url {
867843 Url :: parse ( "https://api.cartridge.gg" ) . expect ( "qed; invalid url" )
868844}
869845
870- #[ cfg( feature = "vrf" ) ]
871- fn default_vrf_port ( ) -> u16 {
872- 3000
873- }
874-
875846#[ derive( Debug , Default , Args , Clone , Serialize , Deserialize , PartialEq ) ]
876847#[ command( next_help_heading = "Tracer options" ) ]
877848pub struct TracerOptions {
0 commit comments