browser index.html.
This commit is contained in:
parent
74a815b016
commit
f59ecaeb7f
@ -266,17 +266,12 @@ more bitcoin magic).</small>
|
||||
return query;
|
||||
})();
|
||||
|
||||
var proxyServer = window.location.protocol
|
||||
+ '//' + window.location.hostname
|
||||
+ (window.location.port ? ':' + window.location.port : '');
|
||||
|
||||
bcoin.set({
|
||||
network: query.network || 'segnet4',
|
||||
debug: true,
|
||||
db: query.db || null,
|
||||
logger: logger,
|
||||
useWorkers: true,
|
||||
proxyServer: proxyServer
|
||||
useWorkers: true
|
||||
});
|
||||
|
||||
node = new bcoin.fullnode({
|
||||
|
||||
@ -266,7 +266,7 @@ Environment.prototype.set = function set(options) {
|
||||
this.maxWorkers = options.maxWorkers;
|
||||
this.workerTimeout = options.workerTimeout;
|
||||
this.workerUri = options.workerUri || '/bcoin-worker.js';
|
||||
this.proxyServer = options.proxyServer || 'http://localhost:8080';
|
||||
this.proxyServer = options.proxyServer;
|
||||
this.logger = options.logger;
|
||||
|
||||
this.network.set(this.networkType);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user