@@ -302,7 +302,8 @@ def print_election_entries_list(self, args):
302302
303303 def print_validator_list (self , args ):
304304 past = "past" in args
305- data = self .ton .GetValidatorsList (past = past )
305+ fast = "fast" in args
306+ data = self .ton .GetValidatorsList (past = past , fast = fast )
306307 if data is None or len (data ) == 0 :
307308 print ("No data" )
308309 return
@@ -311,8 +312,8 @@ def print_validator_list(self, args):
311312 print (text )
312313 else :
313314 table = list ()
314- table += [["ADNL" , "Pubkey" , "Wallet" , "Efficiency" , "Online" ]]
315- for item in data :
315+ table += [["id" , " ADNL" , "Pubkey" , "Wallet" , "Efficiency" , "Online" ]]
316+ for i , item in enumerate ( data ) :
316317 adnl = item .get ("adnlAddr" )
317318 pubkey = item .get ("pubkey" )
318319 walletAddr = item .get ("walletAddr" )
@@ -330,7 +331,7 @@ def print_validator_list(self, args):
330331 online = bcolors .green_text ("true" )
331332 if not online :
332333 online = bcolors .red_text ("false" )
333- table += [[adnl , pubkey , walletAddr , efficiency , online ]]
334+ table += [[str ( i ), adnl , pubkey , walletAddr , efficiency , online ]]
334335 print_table (table )
335336 # end define
336337
0 commit comments