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