@@ -48,7 +48,6 @@ class ClusterLib:
4848 def __init__ (
4949 self ,
5050 state_dir : itp .FileType ,
51- protocol : str = consts .Protocols .CARDANO ,
5251 slots_offset : int = 0 ,
5352 socket_path : itp .FileType = "" ,
5453 command_era : str = consts .CommandEras .LATEST ,
@@ -64,7 +63,6 @@ def __init__(
6463 self .cli_coverage : dict = {}
6564 self ._rand_str = helpers .get_rand_str (4 )
6665 self ._cli_log = ""
67- self .protocol = protocol
6866 self .era_in_use = (
6967 consts .Eras .__members__ .get (command_era .upper ()) or consts .Eras ["DEFAULT" ]
7068 ).name .lower ()
@@ -129,8 +127,6 @@ def __init__(
129127 self ._governance_group : tp .Optional [governance_group .GovernanceGroup ] = None
130128 self ._conway_gov_group : tp .Optional [conway_gov_group .ConwayGovGroup ] = None
131129
132- clusterlib_helpers ._check_protocol (clusterlib_obj = self )
133-
134130 def set_socket_path (self , socket_path : tp .Optional [itp .FileType ]) -> None :
135131 """Set a path to socket file for communication with the node."""
136132 if not socket_path :
@@ -435,6 +431,4 @@ def time_from_epoch_start(self, tip: tp.Optional[dict] = None) -> float:
435431 return float (self .epoch_length_sec - s_to_epoch_stop )
436432
437433 def __repr__ (self ) -> str :
438- return (
439- f"<{ self .__class__ .__name__ } : protocol={ self .protocol } , command_era={ self .command_era } >"
440- )
434+ return f"<{ self .__class__ .__name__ } : command_era={ self .command_era } >"
0 commit comments