Skip to content

Commit

Permalink
Sentinel Aliase Naming configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmachado committed Dec 4, 2023
1 parent 7a08b7a commit 7c2897e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class App {

async start() {
try {
this.logger.debug(`booting sentinel`);
this.logger.debug(`booting - ${this.config.INSTANCE_NAME}`);
this._isShutdown = false;
// send notification about time sentinel started including timestamp
this.notifier.sendNotification(`Sentinel started at ${new Date()}`);
Expand Down
3 changes: 3 additions & 0 deletions src/config/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Config {
this.FASTSYNC = config.fastsync !== "false";
this.IPFS_GATEWAY = process.env.IPFS_GATEWAY || "https://cloudflare-ipfs.com/ipfs/"
this.PIRATE = this._parseToBool(config.pirate);
this.INSTANCE_NAME = config.INSTANCE_NAME || "Sentinel";
}

_initializeFromEnvVariables() {
Expand Down Expand Up @@ -110,6 +111,7 @@ class Config {
this.BLOCK_OFFSET = process.env.BLOCK_OFFSET || 12;
this.MAX_TX_NUMBER = process.env.MAX_TX_NUMBER || 100;
this.NO_REMOTE_MANIFEST = this._parseToBool(process.env.NO_REMOTE_MANIFEST, false);
this.INSTANCE_NAME = process.env.INSTANCE_NAME || "Sentinel";
}

_parseToBool(value, defaultValue = false) {
Expand Down Expand Up @@ -179,6 +181,7 @@ class Config {

getConfigurationInfo () {
return {
INSTANCE_NAME: this.INSTANCE_NAME,
HTTP_RPC_NODE: this.HTTP_RPC_NODE,
FASTSYNC: this.FASTSYNC,
OBSERVER: this.OBSERVER,
Expand Down

0 comments on commit 7c2897e

Please sign in to comment.