Skip to content

Commit

Permalink
fix: update cli url
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Apr 19, 2023
1 parent 5789937 commit fcd6065
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/cli/src/argparse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ const LOG_CONFIG_DEFAULTS: CLI_LOG_CONFIG_TYPE = {
};

const CONFIG_DEFAULTS: CLI_CONFIG_TYPE = {
blockstackAPIUrl: 'http://stacks-node-api.stacks.co',
blockstackNodeUrl: 'http://stacks-node-api.stacks.co',
broadcastServiceUrl: 'http://stacks-node-api.stacks.co/v2/transactions',
blockstackAPIUrl: 'https://stacks-node-api.stacks.co',
blockstackNodeUrl: 'https://stacks-node-api.stacks.co',
broadcastServiceUrl: 'https://stacks-node-api.stacks.co/v2/transactions',
utxoServiceUrl: 'https://blockchain.info',
logConfig: LOG_CONFIG_DEFAULTS,
};
Expand All @@ -96,13 +96,11 @@ const CONFIG_LOCALNET_DEFAULTS = {
logConfig: Object.assign({}, LOG_CONFIG_DEFAULTS, { level: 'debug' }),
};

const PUBLIC_TESTNET_HOST = 'testnet-master.blockstack.org';

const CONFIG_TESTNET_DEFAULTS = {
blockstackAPIUrl: `http://${PUBLIC_TESTNET_HOST}:20443`,
blockstackNodeUrl: `http://${PUBLIC_TESTNET_HOST}:20443`,
broadcastServiceUrl: `http://${PUBLIC_TESTNET_HOST}:20443/v2/transactions`,
utxoServiceUrl: `http://${PUBLIC_TESTNET_HOST}:18332`,
blockstackAPIUrl: `https://stacks-node-api.testnet.stacks.co`,
blockstackNodeUrl: `https://stacks-node-api.testnet.stacks.co`,
broadcastServiceUrl: `https://stacks-node-api.testnet.stacks.co/v2/transactions`,
utxoServiceUrl: `https://blockchain.info`, // todo: this likely doesn't work anymore
logConfig: Object.assign({}, LOG_CONFIG_DEFAULTS, { level: 'debug' }),
};

Expand Down

0 comments on commit fcd6065

Please sign in to comment.