Skip to content

Commit ddaa650

Browse files
fix: correct mirror node error due to change of environment variables (#2099)
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
1 parent 2a2ff05 commit ddaa650

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/commands/mirror-node.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,15 @@ export class MirrorNodeCommand extends BaseCommand {
191191
throw new IllegalArgumentError(`Invalid cloud storage type: ${config.storageType}`);
192192
}
193193
valuesArgument += helpers.populateHelmArguments({
194-
'importer.env.HEDERA_MIRROR_IMPORTER_DOWNLOADER_CLOUDPROVIDER': storageType,
195-
'importer.env.HEDERA_MIRROR_IMPORTER_DOWNLOADER_ENDPOINTOVERRIDE': config.storageEndpoint,
196-
'importer.env.HEDERA_MIRROR_IMPORTER_DOWNLOADER_ACCESSKEY': config.storageReadAccessKey,
197-
'importer.env.HEDERA_MIRROR_IMPORTER_DOWNLOADER_SECRETKEY': config.storageReadSecrets,
194+
'importer.env.HIERO_MIRROR_IMPORTER_DOWNLOADER_CLOUDPROVIDER': storageType,
195+
'importer.env.HIERO_MIRROR_IMPORTER_DOWNLOADER_ENDPOINTOVERRIDE': config.storageEndpoint,
196+
'importer.env.HIERO_MIRROR_IMPORTER_DOWNLOADER_ACCESSKEY': config.storageReadAccessKey,
197+
'importer.env.HIERO_MIRROR_IMPORTER_DOWNLOADER_SECRETKEY': config.storageReadSecrets,
198198
});
199199
}
200200

201201
if (config.storageBucketRegion) {
202-
valuesArgument += ` --set importer.env.HEDERA_MIRROR_IMPORTER_DOWNLOADER_REGION=${config.storageBucketRegion}`;
202+
valuesArgument += ` --set importer.env.HIERO_MIRROR_IMPORTER_DOWNLOADER_REGION=${config.storageBucketRegion}`;
203203
}
204204

205205
if (config.domainName) {
@@ -674,17 +674,17 @@ export class MirrorNodeCommand extends BaseCommand {
674674
.readByRef(containerReference)
675675
.execContainer('/bin/bash -c printenv');
676676
const mirrorEnvironmentVariablesArray = mirrorEnvironmentVariables.split('\n');
677-
const HEDERA_MIRROR_IMPORTER_DB_OWNER = helpers.getEnvironmentValue(
677+
const HIERO_MIRROR_IMPORTER_DB_OWNER = helpers.getEnvironmentValue(
678678
mirrorEnvironmentVariablesArray,
679-
'HEDERA_MIRROR_IMPORTER_DB_OWNER',
679+
'HIERO_MIRROR_IMPORTER_DB_OWNER',
680680
);
681-
const HEDERA_MIRROR_IMPORTER_DB_OWNERPASSWORD = helpers.getEnvironmentValue(
681+
const HIERO_MIRROR_IMPORTER_DB_OWNERPASSWORD = helpers.getEnvironmentValue(
682682
mirrorEnvironmentVariablesArray,
683-
'HEDERA_MIRROR_IMPORTER_DB_OWNERPASSWORD',
683+
'HIERO_MIRROR_IMPORTER_DB_OWNERPASSWORD',
684684
);
685-
const HEDERA_MIRROR_IMPORTER_DB_NAME = helpers.getEnvironmentValue(
685+
const HIERO_MIRROR_IMPORTER_DB_NAME = helpers.getEnvironmentValue(
686686
mirrorEnvironmentVariablesArray,
687-
'HEDERA_MIRROR_IMPORTER_DB_NAME',
687+
'HIERO_MIRROR_IMPORTER_DB_NAME',
688688
);
689689

690690
await self.k8Factory
@@ -693,7 +693,7 @@ export class MirrorNodeCommand extends BaseCommand {
693693
.readByRef(containerReference)
694694
.execContainer([
695695
'psql',
696-
`postgresql://${HEDERA_MIRROR_IMPORTER_DB_OWNER}:${HEDERA_MIRROR_IMPORTER_DB_OWNERPASSWORD}@localhost:5432/${HEDERA_MIRROR_IMPORTER_DB_NAME}`,
696+
`postgresql://${HIERO_MIRROR_IMPORTER_DB_OWNER}:${HIERO_MIRROR_IMPORTER_DB_OWNERPASSWORD}@localhost:5432/${HIERO_MIRROR_IMPORTER_DB_NAME}`,
697697
'-c',
698698
sqlQuery,
699699
]);

version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import fs from 'node:fs';
1414
export const HELM_VERSION: string = 'v3.14.2';
1515
export const SOLO_CHART_VERSION: string = '0.53.0';
1616
export const HEDERA_PLATFORM_VERSION: string = 'v0.61.7';
17-
export const MIRROR_NODE_VERSION: string = 'v0.129.1';
17+
export const MIRROR_NODE_VERSION: string = 'v0.131.0';
1818
export const EXPLORER_VERSION: string = '24.15.0';
1919
export const EXPLORER_OLD_VERSION_BEFORE_LABEL_CHANGE = '24.12.0';
2020
export const HEDERA_JSON_RPC_RELAY_VERSION: string = 'v0.67.0';

0 commit comments

Comments
 (0)