Skip to content

Commit

Permalink
fix: specify full path for password files (geth)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Medeiros authored and 0x-r4bbit committed Feb 20, 2019
1 parent e6eea1d commit c1d08c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const async = require('async');
const {exec, spawn} = require('child_process');
const fs = require('../../core/fs');
const path = require('path');
const GethMiner = require('./miner');
const semver = require('semver');
const constants = require('../../constants');
Expand Down Expand Up @@ -73,7 +74,8 @@ class GethClient {
}

if (config.account && config.account.password) {
cmd.push(`--password=${config.account.password}`);
const resolvedPath = path.resolve(fs.dappPath(), config.account.password);
cmd.push(`--password=${resolvedPath}`);
}

if (Number.isInteger(config.verbosity) && config.verbosity >= 0 && config.verbosity <= 5) {
Expand Down

0 comments on commit c1d08c6

Please sign in to comment.