mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 21:32:55 +01:00
Bugfixes.
This commit is contained in:
parent
12546e1096
commit
550a096749
@ -139,7 +139,7 @@ export class TransactionComponent implements OnInit, OnDestroy {
|
||||
)
|
||||
.subscribe((block) => {
|
||||
const feePervByte = this.tx.fee / (this.tx.weight / 4);
|
||||
this.medianFeeNeeded = block.feeRange[Math.round(block.feeRange.length * 0.5)];
|
||||
this.medianFeeNeeded = Math.round(block.feeRange[Math.round(block.feeRange.length * 0.5)]);
|
||||
|
||||
// Block not filled
|
||||
if (block.weight < 4000000 * 0.95) {
|
||||
|
@ -42,6 +42,11 @@ export class TransactionsListComponent implements OnInit, OnChanges {
|
||||
observableObject[i] = this.electrsApiService.getOutspends$(tx.txid);
|
||||
});
|
||||
|
||||
if (Object.keys(observableObject).length > 100) {
|
||||
console.log('Too many outspends requests');
|
||||
return;
|
||||
}
|
||||
|
||||
forkJoin(observableObject)
|
||||
.subscribe((outspends: any) => {
|
||||
const newOutspends = [];
|
||||
|
@ -3,7 +3,8 @@
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
|
||||
export const environment = {
|
||||
production: false
|
||||
production: false,
|
||||
network: 'mainnet',
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user