Filter accelerations for matching pool
This commit is contained in:
		
							parent
							
								
									b74b8a8a5a
								
							
						
					
					
						commit
						43845cda5c
					
				| @ -358,11 +358,15 @@ export class BlockComponent implements OnInit, OnDestroy { | |||||||
| 
 | 
 | ||||||
|       const acceleratedInBlock = {}; |       const acceleratedInBlock = {}; | ||||||
|       for (const acc of accelerations) { |       for (const acc of accelerations) { | ||||||
|  |         if (acc.pools?.some(pool => pool === this.block?.extras?.pool.id || pool?.['pool_unique_id'] === this.block?.extras?.pool.id)) { | ||||||
|           acceleratedInBlock[acc.txid] = acc; |           acceleratedInBlock[acc.txid] = acc; | ||||||
|         } |         } | ||||||
|  |       } | ||||||
|       for (const tx of transactions) { |       for (const tx of transactions) { | ||||||
|         if (acceleratedInBlock[tx.txid]) { |         if (acceleratedInBlock[tx.txid]) { | ||||||
|           tx.acc = true; |           tx.acc = true; | ||||||
|  |         } else { | ||||||
|  |           tx.acc = false; | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user