Skip to content

Commit

Permalink
Merge pull request #1499 from OriginTrail/prerelease/testnet
Browse files Browse the repository at this point in the history
[Hotfix] Fixed issues found on prerelease mainnet testing
  • Loading branch information
djordjekovac authored Mar 23, 2021
2 parents 8b2773b + 08f2340 commit 290de7b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@
{
"blockchain_title": "xDai",
"network_id": "xdai:mainnet",
"rpc_server_url": "https://xdai.poanetwork.dev",
"rpc_server_url": "https://rpc.xdaichain.com/origintrail/",
"hub_contract_address": "0xB4Cf5D3876FA929706A87F3B4042C741dcb3d688",
"identity_filepath": "xdai_erc725_identity.json",
"gas_limit": "2000000",
Expand Down
1 change: 1 addition & 0 deletions modules/Blockchain/Web3Implementation/Transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class Transactions {
if (Object.keys(receipt).length > 0) {
break;
}
this.logger.warn(`Failed to fetch transaction receipt from empty response on attempt ${i + 1}.`);
} catch (e) {
this.logger.warn(`Failed to fetch transaction receipt. Error: ${e.toString()}`);
}
Expand Down
17 changes: 0 additions & 17 deletions testnet/register-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,23 +256,6 @@ exec /usr/bin/supervisord -c /ot-node/current/testnet/supervisord.conf
externalConfig = JSON.parse(fs.readFileSync(localConfigPath, 'utf8'));
}

if (process.env.ERC_725_IDENTITY) {
const erc725IdentityFilePath = path.join(
localConfiguration.appDataPath,
localConfiguration.erc725_identity_filepath,
);
const content = { identity: process.env.ERC_725_IDENTITY };
fs.writeFileSync(erc725IdentityFilePath, JSON.stringify(content, null, 4));
logger.info('Identity given: ', process.env.ERC_725_IDENTITY);
}

if (process.env.IMPORT_WHITELIST) {
if (!externalConfig.network) {
externalConfig.network = {};
}
externalConfig.network.remoteWhitelist = process.env.IMPORT_WHITELIST.split(',');
}

deepExtend(localConfiguration, externalConfig);
logger.info('Configuration:');
// Mask private key before printing it.
Expand Down

0 comments on commit 290de7b

Please sign in to comment.