@@ -406,19 +406,15 @@ def updateRPCstatus(self, ctrl, fDebug=False):
406406
407407 try :
408408 rpcClient = RpcClient (rpc_protocol , rpc_host , rpc_user , rpc_password )
409- status , statusMess , lastBlock , r_time1 , isTestnet = rpcClient .getStatus ()
410- isBlockchainSynced , r_time2 = rpcClient .isBlockchainSynced ()
409+ status , statusMess , lastBlock , isTestnet = rpcClient .getStatus ()
410+ isBlockchainSynced = rpcClient .isBlockchainSynced ()
411411 except Exception as e :
412412 printException (getCallerName (), getFunctionName (), "exception updating RPC status:" , str (e ))
413413 # clear status
414414 self .rpcClient = None
415415 self .sig_clearRPCstatus .emit ()
416416 return
417417
418- rpcResponseTime = None
419- if r_time1 is not None and r_time2 != 0 :
420- rpcResponseTime = round ((r_time1 + r_time2 ) / 2 , 3 )
421-
422418 # Do not update status if the user has selected a different server since the start of updateRPCStatus()
423419 if rpc_index != self .header .rpcClientsBox .currentIndex ():
424420 return
@@ -429,7 +425,6 @@ def updateRPCstatus(self, ctrl, fDebug=False):
429425 self .rpcLastBlock = lastBlock
430426 self .rpcStatusMess = statusMess
431427 self .isBlockchainSynced = isBlockchainSynced
432- self .rpcResponseTime = rpcResponseTime
433428 # if testnet flag is changed, update api client and persist setting
434429 if isTestnet != self .isTestnetRPC :
435430 self .isTestnetRPC = isTestnet
0 commit comments