Merge branch 'master' into simon/block-tip-hash-api

This commit is contained in:
wiz
2022-06-27 00:32:14 +09:00
committed by GitHub
28 changed files with 1442 additions and 58 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;