Skip to content

Commit

Permalink
Mariner release v2.0.53 (#918)
Browse files Browse the repository at this point in the history
- Increase update check period.
- Fix listener scrip.
- Fix upgrading the container when certs are in /ot-node/ dir.
- Support setting RPC URL using command line param.
  • Loading branch information
kipliklotrika authored Apr 15, 2019
1 parent 81ace1e commit 77f9761
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/command/common/autoupdater-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class AutoupdaterCommand extends Command {
name: 'autoupdaterCommand',
data: {
},
period: 2 * 60 * 1000,
period: 6 * 60 * 60 * 1000,
transactional: false,
};
Object.assign(command, map);
Expand Down
2 changes: 1 addition & 1 deletion 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": "2.0.52",
"version": "2.0.53",
"description": "OriginTrail node",
"main": ".eslintrc.js",
"config": {
Expand Down
9 changes: 8 additions & 1 deletion testnet/register-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function upgradeContainer() {
execSync(`mkdir -p ${initPath}`);

execSync(
'find . ! -path . -a -not \\( -name ".origintrail_noderc" -o -name "init" -o -name "data" \\) -maxdepth 1 -exec mv {} init/ \\;',
'find . ! -path . -a -not \\( -name ".origintrail_noderc" -o -name "init" -o -name "data" -o -name "certs" \\) -maxdepth 1 -exec mv {} init/ \\;',
{ cwd: basePath },
);
execSync(`rm -rf ${path.join(initPath, 'node_modules')}`);
Expand Down Expand Up @@ -191,6 +191,13 @@ function main() {
externalConfig = JSON.parse(fs.readFileSync(localConfigPath, 'utf8'));
}

if (process.env.RPC_SERVER_URL) {
if (externalConfig.blockchain === undefined) {
externalConfig.blockchain = {};
}
externalConfig.blockchain.rpc_server_url = process.env.RPC_SERVER_URL;
}

if (!externalConfig.blockchain || !externalConfig.blockchain.rpc_server_url) {
logger.error('Please provide a valid RPC server URL.\n' +
'Add it to the blockchain section. For example:\n' +
Expand Down
1 change: 1 addition & 0 deletions testnet/supervisor-event-listener.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import sys
import os

def write_stdout(s):
# only eventlistener protocol messages may be sent to stdout
Expand Down

0 comments on commit 77f9761

Please sign in to comment.