Skip to content

Commit

Permalink
fix: CLI unable to specify node URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yknl committed Oct 23, 2020
1 parent 4ced06e commit f8403f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ export class CLINetworkAdapter {
priceUnits: null,
receiveFeesPeriod: null,
gracePeriod: null,
altAPIUrl: network.blockstackAPIUrl,
altAPIUrl: opts.nodeAPIUrl,
altTransactionBroadcasterUrl: network.broadcastServiceUrl,
nodeAPIUrl: null,
nodeAPIUrl: opts.nodeAPIUrl,
};

opts = Object.assign({}, optsDefault, opts);

this.legacyNetwork = new BlockstackNetwork(opts.altAPIUrl!, opts.altTransactionBroadcasterUrl!, network.btc, network.layer1)
this.legacyNetwork = new BlockstackNetwork(opts.nodeAPIUrl!, opts.altTransactionBroadcasterUrl!, network.btc, network.layer1)
this.consensusHash = opts.consensusHash;
this.feeRate = opts.feeRate;
this.namespaceBurnAddress = opts.namespaceBurnAddress;
Expand Down

0 comments on commit f8403f0

Please sign in to comment.