mirror of
https://github.com/mempool/mempool.git
synced 2024-11-20 02:11:49 +01:00
parent
6a9c4d82ec
commit
f3c18b152a
@ -16,14 +16,9 @@ class Donations {
|
||||
|
||||
sponsorsCache: any[] = [];
|
||||
|
||||
constructor() {
|
||||
if (!config.SPONSORS.ENABLED) {
|
||||
return;
|
||||
}
|
||||
this.$updateCache();
|
||||
}
|
||||
constructor() {}
|
||||
|
||||
async $updateCache() {
|
||||
public async $updateCache() {
|
||||
try {
|
||||
this.sponsorsCache = await this.$getDonationsFromDatabase('handle, image');
|
||||
} catch (e) {
|
||||
|
@ -85,12 +85,16 @@ class Server {
|
||||
statistics.startStatistics();
|
||||
}
|
||||
|
||||
fiatConversion.startService();
|
||||
|
||||
if (config.SPONSORS.ENABLED) {
|
||||
donations.$updateCache();
|
||||
}
|
||||
|
||||
this.setUpHttpApiRoutes();
|
||||
this.setUpWebsocketHandling();
|
||||
this.runMainUpdateLoop();
|
||||
|
||||
fiatConversion.startService();
|
||||
|
||||
if (config.BISQ_BLOCKS.ENABLED) {
|
||||
bisq.startBisqService();
|
||||
bisq.setPriceCallbackFunction((price) => websocketHandler.setExtraInitProperties('bsq-price', price));
|
||||
|
Loading…
Reference in New Issue
Block a user