Bugfixes.

This commit is contained in:
softsimon 2020-03-27 01:29:55 +07:00
parent 12546e1096
commit 550a096749
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7
3 changed files with 8 additions and 2 deletions

View File

@ -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) {

View File

@ -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 = [];

View File

@ -3,7 +3,8 @@
// The list of file replacements can be found in `angular.json`.
export const environment = {
production: false
production: false,
network: 'mainnet',
};
/*