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