stauts fix'd
This commit is contained in:
		
							parent
							
								
									1530d3b3f2
								
							
						
					
					
						commit
						8248198ed6
					
				
							
								
								
									
										4
									
								
								qt.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								qt.py
									
									
									
									
									
								
							| @ -707,12 +707,12 @@ class BalWindow(Logger): | ||||
|                     if Willexecutors.push_transactions_to_willexecutor(willexecutors[url]): | ||||
|                         for wid in willexecutors[url]['txsids']: | ||||
|                             self.willitems[wid].set_status('PUSHED', True) | ||||
|                         willexecutors[url]['broadcast_stauts'] = _("Success") | ||||
|                         willexecutors[url]['broadcast_status'] = _("Success") | ||||
|                     else: | ||||
|                         for wid in willexecutors[url]['txsids']: | ||||
|                             self.willitems[wid].set_status('PUSH_FAIL', True) | ||||
|                             error=True | ||||
|                         willexecutors[url]['broadcast_stauts'] = _("Failed") | ||||
|                         willexecutors[url]['broadcast_status'] = _("Failed") | ||||
|                     del willexecutor['txs'] | ||||
|                 except Willexecutors.AlreadyPresentException: | ||||
|                     for wid in willexecutor['txsids']: | ||||
|  | ||||
| @ -133,7 +133,7 @@ def push_transactions_to_willexecutor(willexecutor): | ||||
|     try: | ||||
|         _logger.debug(f"willexecutor['txs']") | ||||
|         if w:=send_request('post', willexecutor['url']+"/"+constants.net.NET_NAME+"/pushtxs", data=willexecutor['txs'].encode('ascii')): | ||||
|             willexecutor['broadcast_stauts'] = _("Success") | ||||
|             willexecutor['broadcast_status'] = _("Success") | ||||
|             _logger.debug(f"pushed: {w}") | ||||
|             if w !='thx': | ||||
|                 _logger.debug(f"error: {w}") | ||||
| @ -145,7 +145,7 @@ def push_transactions_to_willexecutor(willexecutor): | ||||
|         if str(e) == "already present": | ||||
|             raise AlreadyPresentException() | ||||
|         out=False | ||||
|         willexecutor['broadcast_stauts'] = _("Failed") | ||||
|         willexecutor['broadcast_status'] = _("Failed") | ||||
| 
 | ||||
|     return out | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user