mirror of
https://github.com/alexgo-io/stacks-blockchain-api.git
synced 2026-01-12 16:53:19 +08:00
fix: add token offering
This commit is contained in:
@@ -10,6 +10,7 @@ import { processRemainderEvents } from './importers/remainder-importer';
|
||||
import { DatasetStore } from './dataset/store';
|
||||
import { cycleMigrations, dangerousDropAllTables } from '../../datastore/migrations';
|
||||
import { IndexesState } from '../../datastore/common';
|
||||
import { importV1TokenOfferingData } from '../../import-v1';
|
||||
|
||||
import * as _cluster from 'cluster';
|
||||
const cluster = (_cluster as unknown) as _cluster.Cluster; // typings fix
|
||||
@@ -236,6 +237,9 @@ export class ReplayController {
|
||||
*
|
||||
*/
|
||||
finalize = async () => {
|
||||
logger.info({ component: 'event-replay' }, 'Importing Token Offering Data');
|
||||
importV1TokenOfferingData(this.db)
|
||||
|
||||
// Re-enabling indexes
|
||||
logger.info({ component: 'event-replay' }, 'Re-enabling indexes and constraints on tables');
|
||||
await this.db.toggleAllTableIndexes(this.db.sql, IndexesState.On);
|
||||
|
||||
Reference in New Issue
Block a user