Implement our own price indexer with historical data

This commit is contained in:
nymkappa
2022-06-23 15:42:42 +02:00
parent 93dab57959
commit 68f72e3074
15 changed files with 1419 additions and 36 deletions

View File

@@ -27,6 +27,7 @@ import icons from './api/liquid/icons';
import { Common } from './api/common';
import poolsUpdater from './tasks/pools-updater';
import indexer from './indexer';
import priceUpdater from './tasks/price-updater';
class Server {
private wss: WebSocket.Server | undefined;
@@ -153,6 +154,7 @@ class Server {
await blocks.$updateBlocks();
await memPool.$updateMempool();
indexer.$run();
priceUpdater.$run();
setTimeout(this.runMainUpdateLoop.bind(this), config.MEMPOOL.POLL_RATE_MS);
this.currentBackendRetryInterval = 5;