Skip to content

Commit

Permalink
Merge pull request #2303 from OriginTrail/v6/develop
Browse files Browse the repository at this point in the history
OriginTrail 6.0.0 Testnet Release
  • Loading branch information
zeroxbt authored Dec 14, 2022
2 parents e2a2bbd + 3be39d8 commit dde5bd5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@
"package": "./blockchain/implementation/ot-parachain/ot-parachain-service.js",
"config": {
"networkId": "otp::mainnet",
"hubContractAddress": "0x485Cbd3A5BCE1a9c1e5cD37AA02039D7C23fD0c3",
"hubContractAddress": "0x5fA7916c48Fe6D5F1738d12Ad234b78c90B4cAdA",
"rpcEndpoints": [
"https://astrosat-parachain-rpc.origin-trail.network",
"https://astrosat.origintrail.network/",
Expand Down
19 changes: 0 additions & 19 deletions ot-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { CONTRACTS, MIN_NODE_VERSION } from './src/constants/constants.js';
import FileService from './src/service/file-service.js';
import OtnodeUpdateCommand from './src/commands/common/otnode-update-command.js';
import OtAutoUpdater from './src/modules/auto-updater/implementation/ot-auto-updater.js';
import CleanOperationalDatabaseMigration from './src/migration/clean-operational-database-migration.js';

const require = createRequire(import.meta.url);
const pjson = require('./package.json');
Expand Down Expand Up @@ -44,7 +43,6 @@ class OTNode {
this.initializeEventEmitter();

await this.initializeModules();
await this.executeCleanOperationalDatabaseMigration();
await this.listenOnHubContractChanges();

await this.createProfiles();
Expand Down Expand Up @@ -125,23 +123,6 @@ class OTNode {
}
}

async executeCleanOperationalDatabaseMigration() {
const repositoryModuleManager = this.container.resolve('repositoryModuleManager');
const cleanOperationalDatabaseMigration = new CleanOperationalDatabaseMigration(
'CleanOperationalDatabaseMigration5',
this.logger,
this.config,
repositoryModuleManager,
);
if (!(await cleanOperationalDatabaseMigration.migrationAlreadyExecuted())) {
await cleanOperationalDatabaseMigration.migrate();
if (process.env !== 'development' && process.env !== 'test') {
this.logger.info('Operational database cleanup completed. Node will now restart!');
process.exit(1);
}
}
}

initializeEventEmitter() {
const eventEmitter = new EventEmitter();
DependencyInjection.registerValue(this.container, 'eventEmitter', eventEmitter);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "6.0.0-beta.3.1.15",
"version": "6.0.0",
"description": "OTNode v6 Beta 2",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit dde5bd5

Please sign in to comment.