House cleaning, var names, package.json updates, config modifications
This commit is contained in:
parent
045c53accb
commit
e5ab809026
@ -54,10 +54,7 @@ The API is configured to run on port 3000 by default. Use the standard Nginx rev
|
||||
|
||||
* sockets
|
||||
|
||||
2. Mongo Models
|
||||
|
||||
Some data is stubbed. This is due to Bcoin primitives being different from Bitcore. It's unclear whether Mongo models or multiple queries at the api layer will better serve us. Obviously multiple queries are easier but I would prefer a clear cut data model because that leads to fewer problems in the future and gives us greater flexibility in our API and the other microservices we implement in the future.
|
||||
|
||||
# ToDo
|
||||
Mongo Models : Bcoin primitives. A Bcoin block does not present all of bitcore's data.
|
||||
Reorg testing - Bcoin will handle this but we need to account for this in our mongo indexes.
|
||||
JSDoc & Unit tests
|
||||
|
||||
@ -12,8 +12,6 @@ const config = {
|
||||
uri: 'mongodb://localhost/bitcore',
|
||||
options: {
|
||||
useMongoClient: true,
|
||||
socketTimeoutMS: 0,
|
||||
connectTimeoutMS: 0
|
||||
},
|
||||
},
|
||||
api: {
|
||||
|
||||
4
index.js
4
index.js
@ -1,4 +1,4 @@
|
||||
const node = require('./lib/node');
|
||||
const Bcoin = require('./lib/node');
|
||||
const config = require('./config');
|
||||
const logger = require('./lib/logger');
|
||||
const Api = require('./lib/api');
|
||||
@ -15,5 +15,5 @@ Api.listen(config.api.port, () => {
|
||||
});
|
||||
|
||||
db.connection.once('open', function() {
|
||||
node.start();
|
||||
Bcoin.start();
|
||||
});
|
||||
|
||||
@ -18,6 +18,8 @@ function start() {
|
||||
'New Block & Ledger Entry');
|
||||
BlockParser.parse(entry, block);
|
||||
});
|
||||
|
||||
// node.mempool.on('tx' ...)
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
||||
@ -1,14 +1,17 @@
|
||||
{
|
||||
"name": "bitcore-bcoin-insight",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"description": "Full node with extended capabilities using Bitcore and Bcoin",
|
||||
"engines": {
|
||||
"node": ">=7.6.0"
|
||||
},
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node index.js"
|
||||
},
|
||||
"author": "",
|
||||
"license": "",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"bcoin": "^1.0.0-beta.14",
|
||||
"express": "^4.15.3",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user