mirror of
https://github.com/mempool/mempool.git
synced 2025-09-25 12:11:54 +02:00
[prices] only print "latest avg price from exchanges" upon success
This commit is contained in:
@@ -271,7 +271,6 @@ class PriceUpdater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.latestPrices.time = Math.round(new Date().getTime() / 1000);
|
this.latestPrices.time = Math.round(new Date().getTime() / 1000);
|
||||||
logger.info(`Latest BTC fiat averaged price: ${JSON.stringify(this.latestPrices)}`);
|
|
||||||
|
|
||||||
if (!forceUpdate) {
|
if (!forceUpdate) {
|
||||||
this.cyclePosition++;
|
this.cyclePosition++;
|
||||||
@@ -280,6 +279,8 @@ class PriceUpdater {
|
|||||||
if (this.latestPrices.USD === -1) {
|
if (this.latestPrices.USD === -1) {
|
||||||
this.latestPrices = await PricesRepository.$getLatestConversionRates();
|
this.latestPrices = await PricesRepository.$getLatestConversionRates();
|
||||||
logger.warn(`No BTC price available, falling back to latest known price: ${JSON.stringify(this.latestPrices)}`);
|
logger.warn(`No BTC price available, falling back to latest known price: ${JSON.stringify(this.latestPrices)}`);
|
||||||
|
} else {
|
||||||
|
logger.info(`Latest BTC fiat averaged price: ${JSON.stringify(this.latestPrices)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.ratesChangedCallback && this.latestPrices.USD > 0) {
|
if (this.ratesChangedCallback && this.latestPrices.USD > 0) {
|
||||||
|
@@ -7,8 +7,6 @@ import { MempoolBlockViewComponent } from '@components/mempool-block-view/mempoo
|
|||||||
import { ClockComponent } from '@components/clock/clock.component';
|
import { ClockComponent } from '@components/clock/clock.component';
|
||||||
import { StatusViewComponent } from '@components/status-view/status-view.component';
|
import { StatusViewComponent } from '@components/status-view/status-view.component';
|
||||||
import { AddressGroupComponent } from '@components/address-group/address-group.component';
|
import { AddressGroupComponent } from '@components/address-group/address-group.component';
|
||||||
import { TrackerComponent } from '@components/tracker/tracker.component';
|
|
||||||
import { AccelerateCheckout } from '@components/accelerate-checkout/accelerate-checkout.component';
|
|
||||||
import { TrackerGuard } from '@app/route-guards';
|
import { TrackerGuard } from '@app/route-guards';
|
||||||
|
|
||||||
const browserWindow = window || {};
|
const browserWindow = window || {};
|
||||||
|
Reference in New Issue
Block a user