mirror of
https://github.com/mempool/mempool.git
synced 2025-10-09 18:32:49 +02:00
Fix blockheight for frontend goggles classification
This commit is contained in:
@@ -750,7 +750,8 @@ export class TrackerComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
checkAccelerationEligibility() {
|
checkAccelerationEligibility() {
|
||||||
if (this.tx) {
|
if (this.tx) {
|
||||||
this.tx.flags = getTransactionFlags(this.tx, null, null, this.tx.status?.block_height || (this.stateService.latestBlockHeight + 1), this.stateService.network);
|
const txHeight = this.tx.status?.block_height || (this.stateService.latestBlockHeight >= 0 ? this.stateService.latestBlockHeight + 1 : null);
|
||||||
|
this.tx.flags = getTransactionFlags(this.tx, null, null, txHeight, this.stateService.network);
|
||||||
const replaceableInputs = (this.tx.flags & (TransactionFlags.sighash_none | TransactionFlags.sighash_acp)) > 0n;
|
const replaceableInputs = (this.tx.flags & (TransactionFlags.sighash_none | TransactionFlags.sighash_acp)) > 0n;
|
||||||
const highSigop = (this.tx.sigops * 20) > this.tx.weight;
|
const highSigop = (this.tx.sigops * 20) > this.tx.weight;
|
||||||
this.eligibleForAcceleration = !replaceableInputs && !highSigop;
|
this.eligibleForAcceleration = !replaceableInputs && !highSigop;
|
||||||
|
@@ -270,7 +270,8 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
|
|||||||
replaceUrl: true
|
replaceUrl: true
|
||||||
});
|
});
|
||||||
|
|
||||||
this.transaction.flags = getTransactionFlags(this.transaction, this.cpfpInfo, null, this.transaction.status?.block_height || (this.stateService.latestBlockHeight + 1), this.stateService.network);
|
const txHeight = this.transaction.status?.block_height || (this.stateService.latestBlockHeight >= 0 ? this.stateService.latestBlockHeight + 1 : null);
|
||||||
|
this.transaction.flags = getTransactionFlags(this.transaction, this.cpfpInfo, null, txHeight, this.stateService.network);
|
||||||
this.filters = this.transaction.flags ? toFilters(this.transaction.flags).filter(f => f.txPage) : [];
|
this.filters = this.transaction.flags ? toFilters(this.transaction.flags).filter(f => f.txPage) : [];
|
||||||
|
|
||||||
this.setupGraph();
|
this.setupGraph();
|
||||||
|
@@ -930,7 +930,8 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
this.segwitEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'segwit');
|
this.segwitEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'segwit');
|
||||||
this.taprootEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'taproot');
|
this.taprootEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'taproot');
|
||||||
this.rbfEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'rbf');
|
this.rbfEnabled = !this.tx.status.confirmed || isFeatureActive(this.stateService.network, this.tx.status.block_height, 'rbf');
|
||||||
this.tx.flags = getTransactionFlags(this.tx, null, null, this.tx.status?.block_height || (this.stateService.latestBlockHeight + 1), this.stateService.network);
|
const txHeight = this.tx.status?.block_height || (this.stateService.latestBlockHeight >= 0 ? this.stateService.latestBlockHeight + 1 : null);
|
||||||
|
this.tx.flags = getTransactionFlags(this.tx, null, null, txHeight, this.stateService.network);
|
||||||
this.filters = this.tx.flags ? toFilters(this.tx.flags).filter(f => f.txPage) : [];
|
this.filters = this.tx.flags ? toFilters(this.tx.flags).filter(f => f.txPage) : [];
|
||||||
this.checkAccelerationEligibility();
|
this.checkAccelerationEligibility();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user