Add check for mempoolBlocks length in mempool subscription

This commit is contained in:
natsee 2024-02-01 12:13:34 +01:00
parent e4d92c8fe0
commit 7ab5b2a2b7
No known key found for this signature in database
GPG Key ID: 233CF3150A89BED8

View File

@ -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;
}
});