node start wired up

This commit is contained in:
tenthirtyone 2017-08-03 03:13:55 -04:00
parent aaef1c7273
commit 06b24d85b7
2 changed files with 44 additions and 36 deletions

View File

@ -10,3 +10,4 @@ Api.listen(3000, () => {
'listening on port 3000'); 'listening on port 3000');
}); });
node.start();

View File

@ -6,6 +6,8 @@ const logger = require('../../lib/logger');
const db = require('../../lib/db'); const db = require('../../lib/db');
const util = require('../../lib/util'); const util = require('../../lib/util');
function start() {
node.open() node.open()
.then(() => { .then(() => {
node.connect().then(() => { node.connect().then(() => {
@ -47,3 +49,8 @@ function processBlock(entry, block, cb) {
} }
}); });
} }
}
module.exports = {
start,
}