Skip to content

Commit

Permalink
Fixed path of rest.bitcoin.com after update, only print options with …
Browse files Browse the repository at this point in the history
…debug flag
  • Loading branch information
rkalis committed Nov 2, 2018
1 parent 8c850e7 commit 9b50578
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 5 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,14 @@ var options = {
// time: argv.t,
}

console.log("OPTIONS:");
console.log(options);

const BITBOXSDK = require('bitbox-sdk/lib/bitbox-sdk');
const BITBOX = new BITBOXSDK.default();

const IMAGE_NAME = 'pandacash';
const CONTAINER_NAME = 'pandacash';
const BITCOIN_CLI = 'bitcoin-cli -regtest -rpcuser=regtest -rpcpassword=regtest';
const BITCOIN_DATA_DIR = '/opt/bitcoin/';
const REST_APP = path.dirname(require.resolve('rest.bitcoin.com/package.json')) + '/app.js';
const REST_APP = path.dirname(require.resolve('rest.bitcoin.com/package.json')) + '/dist/app.js';

const mnemonic = options.mnemonic || generateSeedMnemonic();
const keyPairs = generateSeedKeyPairs(mnemonic, options.totalAccounts);
Expand Down Expand Up @@ -153,6 +150,11 @@ function printPandaMessage() {
)
);

if (options.debug) {
console.log("OPTIONS:");
console.log(options);
}

await startDocker();
await seedAccounts();
startBitboxApi();
Expand Down
62 changes: 61 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9b50578

Please sign in to comment.