Add check for mempoolBlocks length in mempool subscription
This commit is contained in:
		
							parent
							
								
									e4d92c8fe0
								
							
						
					
					
						commit
						7ab5b2a2b7
					
				| @ -507,7 +507,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|       if (!found && txFeePerVSize < mempoolBlocks[mempoolBlocks.length - 1].feeRange[0]) { | ||||
|       if (!found && mempoolBlocks.length && txFeePerVSize < mempoolBlocks[mempoolBlocks.length - 1].feeRange[0]) { | ||||
|         this.txInBlockIndex = 7; | ||||
|       } | ||||
|     }); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user