Adjustments for initial setup.
This commit is contained in:
parent
b5272fd398
commit
6b3470198f
@ -8,6 +8,8 @@ BitcoreNode:
|
||||
RPC:
|
||||
user: user
|
||||
pass: password
|
||||
protocol: http
|
||||
protocol: http # http, https
|
||||
#rejectUnauthorized: false
|
||||
#disableAgent: true
|
||||
host: 127.0.0.1
|
||||
port: 8332
|
||||
|
||||
@ -4,10 +4,10 @@ BitcoreNode:
|
||||
NetworkMonitor:
|
||||
host: localhost
|
||||
port: 8333
|
||||
Reporter: none # none, simple, matrix
|
||||
RPC:
|
||||
user: user
|
||||
pass: password
|
||||
protocol: http
|
||||
host: 127.0.0.1
|
||||
port: 8332
|
||||
Reporter: none # none, simple, matrix
|
||||
RPC:
|
||||
user: user
|
||||
pass: password
|
||||
protocol: http
|
||||
host: 127.0.0.1
|
||||
port: 8332
|
||||
|
||||
@ -4,10 +4,10 @@ BitcoreNode:
|
||||
NetworkMonitor:
|
||||
host: localhost
|
||||
port: 18333
|
||||
Reporter: none # none, simple, matrix
|
||||
RPC:
|
||||
user: user
|
||||
pass: password
|
||||
protocol: http
|
||||
host: 127.0.0.1
|
||||
port: 18332
|
||||
Reporter: none # none, simple, matrix
|
||||
RPC:
|
||||
user: user
|
||||
pass: password
|
||||
protocol: http
|
||||
host: 127.0.0.1
|
||||
port: 18332
|
||||
|
||||
4
index.js
4
index.js
@ -10,7 +10,7 @@ BitcoreNode.errors = require('./lib/errors');
|
||||
|
||||
if (require.main === module) {
|
||||
var config = require('config');
|
||||
var network = config.get('BitcoreHTTP.BitcoreNode').network;
|
||||
var network = config.get('BitcoreNode').network;
|
||||
console.log('Starting bitcore-node', network, 'network');
|
||||
bitcore.Networks.defaultNetwork = bitcore.Networks.get(network);
|
||||
|
||||
@ -28,7 +28,7 @@ if (require.main === module) {
|
||||
process.exit();
|
||||
});
|
||||
|
||||
var reporterName = config.get('Reporter');
|
||||
var reporterName = config.get('BitcoreNode.Reporter');
|
||||
var reporter = reporters[reporterName];
|
||||
if (!reporter) {
|
||||
throw new Error('Unrecognized network reporter: ' + reporterName +
|
||||
|
||||
@ -232,10 +232,7 @@ BlockService.prototype._getLatestHash = function() {
|
||||
var self = this;
|
||||
return Promise.try(function() {
|
||||
return self.database.getAsync(Index.tip);
|
||||
}).catch(function(error) {
|
||||
if (error.toString() !== 'NotFoundError: Key not found in database [tip]') {
|
||||
throw error;
|
||||
}
|
||||
}).catch(LevelUp.errors.NotFoundError, function() {
|
||||
return null;
|
||||
});
|
||||
};
|
||||
|
||||
@ -47,8 +47,8 @@
|
||||
"express": "4.11.1",
|
||||
"glob": "*",
|
||||
"js-yaml": "^3.2.7",
|
||||
"leveldown": "~0.10.0",
|
||||
"levelup": "^0.19.0",
|
||||
"leveldown": "git://github.com/Level/leveldown#657b5c",
|
||||
"levelup": "git://github.com/Level/levelup#202ee1",
|
||||
"memdown": "^1.0.0",
|
||||
"moment": "~2.5.0",
|
||||
"morgan": "^1.5.1",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user