File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def setup_collator(self, args: list):
7474 set_node_argument (self .local , ['-M' ])
7575 if shards_need_to_add :
7676 set_node_argument (self .local , ['--add-shard' , ' ' .join (node_args ['--add-shard' ] + shards_need_to_add )])
77- commands_text = [f'`add_collator { s } { adnl_addr } `' for s in shards ]
77+ commands_text = [f'`add_collator { adnl_addr } { s } `' for s in shards ]
7878 self .local .add_log (f'Collator enabled for shards { shards } \n '
7979 f'To add this collator to validator use command:\n '
8080 + '\n ' .join (commands_text ))
Original file line number Diff line number Diff line change @@ -160,11 +160,11 @@ def set_collators_list(self, collators_list: dict):
160160
161161 def add_collator (self , args : list ):
162162 if len (args ) < 2 :
163- color_print ("{red}Bad args. Usage:{endc} add_collator <shard > <adnl > [--self-collate <true/false>] [--select-mode <random/ordered/round_robin>]" )
163+ color_print ("{red}Bad args. Usage:{endc} add_collator <adnl > <shard > [--self-collate <true/false>] [--select-mode <random/ordered/round_robin>]" )
164164 return
165- shard = args [0 ]
165+ adnl = args [0 ]
166+ shard = args [1 ]
166167 shard_id = hex_shard_to_int (shard )
167- adnl = args [1 ]
168168 if is_hex (adnl ):
169169 adnl = hex2b64 (adnl )
170170 self_collate = pop_arg_from_args (args , '--self-collate' ) == 'true' if '--self-collate' in args else None
You can’t perform that action at this time.
0 commit comments