Skip to content

Commit

Permalink
fixed pandacash path
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbarwicki committed Nov 3, 2018
1 parent 52bdff7 commit 285cd18
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandacash-core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ let blockchainStdout;
* We use the bcash implementation
* http://bcoin.io/api-docs
*/

async function startNode() {
// delete the pandacash
console.log('Starting Bitcoin Cash blockchain');
Expand All @@ -59,7 +60,7 @@ async function startNode() {
* b) --prefix=${__dirname}/../.bcash
*/

const cmd = __dirname + `/../node_modules/bcash/bin/bcash --network=regtest`;
const cmd = path.dirname(require.resolve('bcash/package.json')) + `/bin/bcash --network=regtest`;

blockchainStdout = _exec(cmd).stdout;

Expand Down

0 comments on commit 285cd18

Please sign in to comment.