Bcoin config moved to config file

This commit is contained in:
tenthirtyone 2017-08-02 14:55:55 -04:00
parent b028dead40
commit 767fc7e98a

View File

@ -4,6 +4,7 @@ const config = require('./config/config.js');
const logger = require('./lib/logger');
const Block = require('./models/block');
const Server = require('./lib/server');
//const BcoinNode = require('./lib/bcoin');
mongoose.connect(config.mongodb, {
useMongoClient: true
@ -12,13 +13,7 @@ mongoose.connect(config.mongodb, {
logger.log('debug',
'Debug mode started');
const node = new FullNode({
network: 'main',
db: 'leveldb',
checkpoints: true,
workers: true,
//logLevel: 'info',
});
const node = new FullNode(config.bcoin);
(async () => {
await node.open();