Fix merge conflict
This commit is contained in:
parent
79eb9635c2
commit
9aac0ddce7
@ -1,7 +1,7 @@
|
|||||||
import { Ancestor, CpfpCluster, CpfpInfo, CpfpSummary, MempoolTransactionExtended, TransactionExtended } from '../mempool.interfaces';
|
import { Ancestor, CpfpCluster, CpfpInfo, CpfpSummary, MempoolTransactionExtended, TransactionExtended } from '../mempool.interfaces';
|
||||||
import { GraphTx, convertToGraphTx, expandRelativesGraph, initializeRelatives, makeBlockTemplate, mempoolComparator, removeAncestors, setAncestorScores } from './mini-miner';
|
import { GraphTx, convertToGraphTx, expandRelativesGraph, initializeRelatives, makeBlockTemplate, mempoolComparator, removeAncestors, setAncestorScores } from './mini-miner';
|
||||||
import memPool from './mempool';
|
import memPool from './mempool';
|
||||||
import { Acceleration } from './acceleration';
|
import { Acceleration } from './acceleration/acceleration';
|
||||||
|
|
||||||
const CPFP_UPDATE_INTERVAL = 60_000; // update CPFP info at most once per 60s per transaction
|
const CPFP_UPDATE_INTERVAL = 60_000; // update CPFP info at most once per 60s per transaction
|
||||||
const MAX_CLUSTER_ITERATIONS = 100;
|
const MAX_CLUSTER_ITERATIONS = 100;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Acceleration } from './acceleration';
|
import { Acceleration } from './acceleration/acceleration';
|
||||||
import { MempoolTransactionExtended } from '../mempool.interfaces';
|
import { MempoolTransactionExtended } from '../mempool.interfaces';
|
||||||
import logger from '../logger';
|
import logger from '../logger';
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ export class BlockOverviewTooltipComponent implements OnChanges {
|
|||||||
this.effectiveRate = this.tx.rate;
|
this.effectiveRate = this.tx.rate;
|
||||||
const txFlags = BigInt(this.tx.flags) || 0n;
|
const txFlags = BigInt(this.tx.flags) || 0n;
|
||||||
this.acceleration = this.tx.acc || (txFlags & TransactionFlags.acceleration);
|
this.acceleration = this.tx.acc || (txFlags & TransactionFlags.acceleration);
|
||||||
this.hasEffectiveRate = this.tx.acc || !(Math.abs((this.fee / this.vsize) - this.effectiveRate) <= 0.05 && Math.abs((this.fee / Math.ceil(this.vsize)) - this.effectiveRate) <= 0.05)
|
this.hasEffectiveRate = this.tx.acc || !(Math.abs((this.fee / this.vsize) - this.effectiveRate) <= 0.1 && Math.abs((this.fee / Math.ceil(this.vsize)) - this.effectiveRate) <= 0.1)
|
||||||
|| (txFlags && (txFlags & (TransactionFlags.cpfp_child | TransactionFlags.cpfp_parent)) > 0n);
|
|| (txFlags && (txFlags & (TransactionFlags.cpfp_child | TransactionFlags.cpfp_parent)) > 0n);
|
||||||
this.filters = this.tx.flags ? toFilters(txFlags).filter(f => f.tooltip) : [];
|
this.filters = this.tx.flags ? toFilters(txFlags).filter(f => f.tooltip) : [];
|
||||||
this.activeFilters = {}
|
this.activeFilters = {}
|
||||||
|
@ -599,7 +599,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
bestDescendant: tx.bestDescendant,
|
bestDescendant: tx.bestDescendant,
|
||||||
});
|
});
|
||||||
const hasRelatives = !!(tx.ancestors?.length || tx.bestDescendant);
|
const hasRelatives = !!(tx.ancestors?.length || tx.bestDescendant);
|
||||||
this.hasEffectiveFeeRate = hasRelatives || (tx.effectiveFeePerVsize && (Math.abs(tx.effectiveFeePerVsize - tx.feePerVsize) > 0.01));
|
this.hasEffectiveFeeRate = hasRelatives || (tx.effectiveFeePerVsize && (Math.abs(tx.effectiveFeePerVsize - tx.feePerVsize) >= 0.1));
|
||||||
} else {
|
} else {
|
||||||
this.fetchCpfp$.next(this.tx.txid);
|
this.fetchCpfp$.next(this.tx.txid);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user